Sortible list working in page1 but not when loaded in page2?

Sortible list working in page1 but not when loaded in page2?

 
I have tested to get a sortible list rearanged and it works great when I have the code in page1.asp, but if I load another page(page2.asp) into a div in page1.asp with jquery and I have the sortible code in page2.asp, then it doesnt work to rearange the list? What Im I missing?
 
Im calling page2.asp with this code:
$(document).ready(function(){
    loadPage();
});
function loadPage(url) {
     
      $('#container').load(url + ' #content', hijackLinks);
}
function hijackLinks() {

     $('#container a').click(function(e){
        e.preventDefault();
        loadPage(e.target.href);
    });
  }












 
I have tested other jquery things aswell in page2.asp but it seams like no jquery(or other javascript) code is working if I have it in page2.asp
Im missing something, I just dont know what?
    • Topic Participants

    • info