JQuery Ajax Call
Posted: Tue Aug 18, 2009 3:39 pm
I am using jQuery to do a ajax call:
Everything loads just fine, but what I found is that other jQuery code inside the newly loaded data doesn't work. Do I need to link to the javascript files again from newly loaded data?
I hope that makes sense. Are there any tricks to making javascript code work in a section that was loaded via Ajax and jQuery?
Code: Select all
var loadUrl = "organize.php";
$("#loadPortfolio").click(function(){
$("#result").html(ajax_load).load(loadUrl, "location=1");
});
I hope that makes sense. Are there any tricks to making javascript code work in a section that was loaded via Ajax and jQuery?