shadow box not working with ajax

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

shadow box not working with ajax

tahir
shadow box i working fine on front page. but when i click on next my page display data by using ajax and shadow box stop working? how can i solve this issue?
Reply | Threaded
Open this post in threaded view
|

Re: shadow box not working with ajax

Wizzud
search the forum for ajax ... ?
Combine literacy with curiosity and a whole world of information opens up to you
Reply | Threaded
Open this post in threaded view
|

Re: shadow box not working with ajax

tahir
i am not searching for ajax. i want to find solution how shadow box will work with ajax/pagination. its work fine on first page when i click on next then shadow box stop working
Reply | Threaded
Open this post in threaded view
|

Re: shadow box not working with ajax

joberhoff
index.html

<script type="text/javascript" src="actions.js"></script>
<link rel="stylesheet" type="text/css" href="shadowbox.css">
<script type="text/javascript" src="shadowbox.js"></script>
<script type="text/javascript"> Shadowbox.init({ skipSetup: true }); </script>
actions.js

....

function forwarder(url){
       
        new Ajax.Request(url,
  {
                method:'get',
                onSuccess: function(transport){
                  var response = transport.responseText || "no response text";
                  $('content').innerHTML = response;
                  setTimeout("initContentSub()",0);
                },
                onFailure: function(){ alert('Something went wrong...') }
         });
       
}

....

function initContentSub(){

Shadowbox.init();
Shadowbox.setup();

}