I believe it occurs when the page has not yet finished
loading/interpreting the javascript that's going to be used to create
the lightbox effect. As a result, the link -- which points to the image
that will load -- just goes directly to that image rather than being
"cut off" by the javascript and shown in a lightbox. I've solved the
problem by showing the images using javascript after the rest of the
page loads using the Event.observe(window, "load", function() { ... })
paradigm.
- Dash -
new2js wrote:
> i implemented lightbox js for a gallery page, but the first time an
> image is clicked and loaded, the "action" does not launch, but instead
> just a white page with the image. I have to click browser refresh for
> the feature to "take".
>
> can anyone advise?
>
> thank you!
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---