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

After loading ajax modal, jquery ui .button() function not working #9

Closed
karthik-code opened this issue May 28, 2015 · 2 comments
Closed

Comments

@karthik-code
Copy link

After loading ajax modal all other jquery functions which uses the jquery ui .button() function not working.
i.e., functions which has the following code are not working.

 $btn.button('loading');

Console logs the following error :

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
Uncaught TypeError: $(...).button is not a function

@saribe
Copy link
Owner

saribe commented May 28, 2015

I can't repro this, can you provide an example in codepen or something alike?

do you have <script async src="..."/> in your ajax template target?

@karthik-code
Copy link
Author

I found that the loaded content from URL via ajax modal contains Jquery which causes issue.
i.e., loading the jquery script again on the modal content produces the above error.

Thanks for quicker response and making this awesome script.

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

2 participants