jquery-hashchange
jquery-hashchange copied to clipboard
getScript()
Hi, I need to use javascript on the loaded page. So I used $.getScript() to load my javascript file needed for the loaded page, but it doesn't work :
[code] ... .appendTo( '#maincontent')
.load( 'ajax/' + url + '.php', function() {
$( '#theloader' ).fadeOut(300);
$.getScript("js/main.js");
});
... [/code]
Do you have any idea ?
Thanks for your answer !