Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7726187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:09:06+00:00 2026-06-01T05:09:06+00:00

Anyone know how to retrieve the current image data (alt, src) via the changepicturecallback

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T05:09:08+00:00Added an answer on June 1, 2026 at 5:09 am

    Technically, your attempt is right, but try to broaden your scope a bit, and do some testing…

    myCallbackTest = function() {
      alert('the callback worked! thats a good start!');
    
      var $activeimage = $("#fullResImage");
    
      var source = $activeimage.attr('src'), altText = $activeimage.attr('alt');
    
      if(!$activeimage.length) {
        alert('The image selector failed');
      } else if (!source) {
        alert('The image selector worked, but I found no source');
      } else if (!altText) {
        alert('Found The image and its source, but it doesnt seem to have any alt text');
      } else {
        alert('i got it! alt: ' + altText + ' src: ' + source);
      } 
    }
    

    Then give it a go…

    $(function() {
      $('a[rel^=prettyPhoto]').prettyPhoto({
        theme: 'facebook',
        slideshow:5000, 
        autoplay_slideshow:true,
        changepicturecallback: myCallbackTest
      });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know how can I using jquery to retrieve the data from the
Anyone know? Want to be able to on the fly stamp an image with
Does anyone know how to retrieve a piece of data and display the results
Does anyone know any simple way to retrieve the country from a given IP
Does anyone know how to retrieve the text from HTMLbox rich text editior?
Does anyone know how to retrieve the SFDC daily requests api limit through SOAP
Does anyone know how to retrieve the option chosen from a drop-down select box?
Does anyone know how to get grep, or similar tool, to retrieve offsets of
Does anyone know how to retrieve a short sentence from within the main string?
does anyone know how i can retrieve the frame dimension of a mpeg4 video

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.