Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getScript() #24

Open
iamluxan opened this issue Dec 7, 2012 · 0 comments
Open

getScript() #24

iamluxan opened this issue Dec 7, 2012 · 0 comments

Comments

@iamluxan
Copy link

iamluxan commented Dec 7, 2012

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant