-
Notifications
You must be signed in to change notification settings - Fork 200
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
$(...).loading is not a function #12
Comments
Hi @phambinh217. Please make sure you're including the |
Hi !
$("#test").loading(); i use jquery v 1.12.4 i've loaded the jquery.loading.js and jquery.loading.min.js from the dist folder. =) |
Hi @Xeobass ! Please load just one of the Also, load the Another thing to consider is the order you're importing and calling the plugin: you need to first import the plugin and just then call the |
I had same problem. A overlay was attached to ajax request. It works well when request start, but could not stop when ajax request stopped, and caught the error message. codes likes $.Loading.setDefaults({
zIndex: 9999
})
// ajax加载动画
$(document).ajaxSend(function () {
$('body').loading({overlay: $('#loading-overlay')})
})
$(document).ajaxStop(function () {
$('body').loading('stop');
}) |
Hi @qiulin ! Could not reproduce here... please share the full code with your html script imports. You could use something like codepen.io for that |
when plugin is imported using npm (Meteorjs application), I get the same error. |
It was a bad definition of the UMD exporter. Should be fixed at v1.3.0. |
it error $(...).loading is not a function when i submit form!
The text was updated successfully, but these errors were encountered: