Closed tanveer12332 closed 8 years ago
Give me some more info. I tested it on IE11 and works for me. Which version of IE you are testing? Which plugin animation are you using?
i m using jQueryIntroLoader - v1.6.0 and my IE version is 11.0.96 and 11.26 and save issue in Edge
Hi I tested v 1.7.1 in Explorer 11 and Edge and it works, including start and stop method. Have you a public link where I can see your page?
yes see my projdect www.cloud.mybusinessmanager.com and open developers toolbar and see inline introloader function
At now i can see that your page works on my IE11 and Edge.
Unable to get property 'stop' of undefined or null reference
Reading your code I'm seeing that you tried to stop plugin (at now is commented on your code) where plugin does not exists. This happens because you launch plugin only if window.localStorage.getItem('user') is null, and if not you try to stop plugin. For this reason you received the error message.
Read my comment on your code:
if (window.localStorage.getItem('user') == null) {
$("#element").introLoader({
[...]
});
// here plugin exists and you can use .stop() method
var loader = $('#element').data('introLoader');
loader.stop(); // this will work
} else {
// here plugin NOT exists and you can't use .stop() method
var loader = $('#element').data('introLoader');
loader.stop(); // this will not work
}
So i think that the correct way to use this plugin in your scenario is to do exactly what you have done or something similar (not tested):
if (window.localStorage.getItem('user') == null) {
$('body').append('<div id="element"></div>');
$("#element").introLoader({
[...]
});
}
I hope that this can be helpful.
yes is working thanks
Unable to get property 'stop' of undefined or null reference