Selamun Aleyküm,
$koray .= '<div class="image-cropper">
<a href="#" class="btnsnr" id="'.$say.'" fbphotobox-src="'.$gallery['img'].'" ><img src="'.$gallery['img'].'" title="aaaaa" id="centered" class="gallery" height="150">
</a></div>';
seklinde döngüde basilan bir galerim var, buradaki img title etiketiyle, mysql'den bu resime ait bilgileri cekmek istiyorum, sikintim su,
$(document).ready(function() {
$(".fbphotobox img").fbPhotoBox({
rightWidth: 440,
leftBgColor: "black",
rightBgColor: "white",
footerBgColor: "black",
overlayBgColor: "#1D1D1D",
onImageShow: function() {
$.ajax({
url:"processing.php",
type: "GET",
cache:0,
data: "id="+$(this).attr('title'),
success:function(result){
$(".fbphotobox-image-content").html(result);
}
});
}
});
});
eger buradaki kodta, title = "aaa" sonucu gelmesi gerekirken undefined yaziyor, fakat attr'sini $(this).attr('src'); yapinca resmin src'sini aliyor? acaba nerede hata yapiyorum. tesekkürler.