jquery-hashchange icon indicating copy to clipboard operation
jquery-hashchange copied to clipboard

getScript()

Open iamluxan opened this issue 12 years ago • 0 comments

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 !

iamluxan avatar Dec 07 '12 09:12 iamluxan