Comments (7)
Hi @phambinh217.
Please make sure you're including the dist/jquery.loading.js
file in your page.
from jquery-loading.
Hi !
I've tryed to use your lib too and i have the same error.
<div id="test" style="width:200px; height:200px;">
testing...
</div>
$("#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.
=)
from jquery-loading.
Hi @Xeobass !
Please load just one of the dist/jquery.loading.js
OR dist/jquery.loading.min.js
, but not both. The min file is identical to the other one, but minified for production.
Also, load the css
file if you're not already doing so.
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 $().loading
function. If you're calling the plugin before import you'll get a Uncaught TypeError: $(...).loading is not a function
error.
from jquery-loading.
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');
})
from jquery-loading.
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
from jquery-loading.
when plugin is imported using npm (Meteorjs application), I get the same error.
from jquery-loading.
It was a bad definition of the UMD exporter. Should be fixed at v1.3.0.
from jquery-loading.
Related Issues (19)
- Overlay doesn't hide and a second overlay appears over first one HOT 4
- How to destroy plugin instance? HOT 5
- there is no destroy method HOT 3
- Does it possible to add a update message function? HOT 3
- Multiple loading with custom overlay HOT 1
- Submit button inside form tag doesn’t work in Safari HOT 2
- critical dependency error on laravel mix HOT 1
- Bad position HOT 4
- Issue using in a Bootstrap modal dialog HOT 3
- Error: Cannot find module '[object Window]' HOT 1
- the file of jquery.loading.min.js contains 'const' symbol
- can't mask all body when work with jeasyui
- Unable to use multiple instances on same element
- If you use multiple loadings, message does not change HOT 4
- z-index 9 is too low HOT 5
- Unable to get the overlay to display HOT 2
- loading('stop') displyaing the loading widget HOT 5
- Nuget package deployment HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-loading.