Anyone know how to retrieve the current image data (alt, src) via the changepicturecallback function with Jquery prettyPhoto?
I want to pass these two variables to an ajax script and can’t seem to get my hands on the info to pass. Tried this to no avail.
var image = jQuery(".pp_pic_holder").find("#pp_full_res img").attr("src");
There must be a way to easily access this data at run time.
Any suggestions or point in the right direction?
When I was working with Gallerific I was able to get this info using
var image_src = this.data[nextIndex].slideUrl;
EDIT => Just had to narrow my search down for the target
var image = jQuery('#fullResImage').attr('src');
Works just fine now.
Technically, your attempt is right, but try to broaden your scope a bit, and do some testing…
Then give it a go…