overlay not working on ajax loaded content

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

overlay not working on ajax loaded content

scriptdog
hi i know this question has been previous answered but i just cant make it work

i had defined the scripts at head...

- shadowbox/adapter/shadowbox-base
- shadowbox/shadowbox


then at body...

Shadowbox.loadSkin('classic', '/js/shadowbox/skin');
Shadowbox.loadLanguage('es', '/js/shadowbox/lang');
Shadowbox.loadPlayer(['img','wmp','flv','qt','iframe'], '/js/shadowbox/player');

Event.observe(window, 'load', function() {
 
  Shadowbox.init();
 
});


links like this...

<a class="thumb_link" rel="shadowbox[media]" href="/uploads/images/454971001219981146.jpg">
<img class="thumb" alt="Foto 0" src="/images/picture.png"/>
</a>


from this point works fine, overlay works... but at pager if i load links from page 2 inside the div layer, dont work

i tryed to what documentation explains...

inside ajax response...

Shadowbox.setup();

now the shadowbox layer appears, but at bottom of page, not darking and overlaying content

is there any thing it should be done, i tryed to found around website and all forum but just could find the answer
Reply | Threaded
Open this post in threaded view
|

Re: overlay not working on ajax loaded content

Wizzud
Web-accessible example page?
Combine literacy with curiosity and a whole world of information opens up to you