Shadowbox working together with JQuery

1 message Options
Embed this post
Permalink
dst

Shadowbox working together with JQuery

Reply Threaded More More options
Print post
Permalink
Hello

I have a timing problem concerning the cooperation between Shadowbox and JQuery. I want to display some content (that has been modified using JQuery) in a lightbox. This is the code:

a href="#lightbox" rel="shadowbox;height=450;width=500;" onClick="modifyTheLightboxContentWithJquery()"

At the time the function modifyTheLightboxContentWithJquery() is triggered the DOM-tree has not been copied (shadowbox_content does not yet exist). So I modified the original DOM-tree which is done correctly but the result ist not shown in the lightbox (the modifications are not copied to shadowbox_content).

I tried this version too with the same result:

a href="#lightboxVcard" onclick="Shadowbox.open({player:'inline', content:'#lightboxVcard', height:450, width:500}); modifyTheLightboxContentWithJquery();"

I hope someone can help me.

Please apologize for my bad english.


Regards,
Dieter