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 8027507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:50:06+00:00 2026-06-04T23:50:06+00:00

I am having a jquery plugin that loads images from Picasa album. But when

  • 0

I am having a jquery plugin that loads images from Picasa album. But when am trying to add light box to it, it doesnt work. I have read some where that we can to use .delegat or .live or .on in jquery when content is loaded after the dom loads. But am confused.

This is the actual code in normal cases:

jQuery("#ts-display-portfolio a").prettyPhoto({
   animationSpeed:'slow',
   theme:'facebook',
   slideshow:2000
 });

This is what I tried to do, I believe its wrong:

 $(document).delegate(
     "#ts-display-portfolio a", 
     "prettyPhoto", 
     function(){ 
         animationSpeed:'slow',
         theme:'facebook',
         slideshow:2000;
 });

This is how the html is

<a href="img/IMG_3884_large.JPG" >
<img  src="img/IMG_3884.JPG">
</a>
  • 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-04T23:50:07+00:00Added an answer on June 4, 2026 at 11:50 pm

    First of all, the code you supplied is not very clear. What is what?

    However, if I understand it correctly, the problem is that the HTML generated by Picasa plugin is not ready before the lightBox plugin is instantiated.

    The code from the lightBox website:

    $(function() {
    $('#gallery a').lightBox({fixedNavigation:true});
    });
    

    So you need to do 2 things:

    1) Make sure that the element containing the photos has the right identifier (class or ID). In this case ID “gallery”
    2) Place this code AFTER the loading is complete (in the Picasa script)

     $('#gallery a').lightBox({fixedNavigation:true});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a bit of trouble finding a nice little jquery plugin that would
For a JQuery plugin that I am trying to write I would like to
I have a website that uses the jQuery Address plugin from Asual for navigation.
I live and breathe jQuery, but I also love finding an excellent plugin that
I am having problems with the Jquery qtip plugin. It works fine in Firefox
I'm currently using this jQuery validate plugin and having an issue in IE where
I'm having an issue using the qTip plugin with jQuery. I've created a js
I am using jQuery's auto-complete plugin for a simple search form. I am having
I'm having two jquery's that I run and I want to combine them both
I am trying to grab a visual force element using jQuery and having some

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.