cowboy/jquery-hashchange

getScript()

iamluxan opened this issue · 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 !