I have dialog box for load a form , contents loading from external url take some time to load. therefore how can I add a spinner loader to show till content loading.
Asked
Active
Viewed 98 times
0
-
Seems like you're using some additional libraries/plugins other than jQuery-- what are those? We'll need to know to see if there are promises/callbacks that can be leveraged for that purpose. – Alexander Nied Dec 07 '16 at 14:38
-
@anied : I've added a screenshot. those plugins are loading. – Dec 07 '16 at 14:43
-
@anied : Is it possible to add alert to show alert('Still loading, please wait just a second longer'); till the content load – Dec 07 '16 at 14:44
-
What is your plugin that is providing `.dialog`? I'd recommend exploring [`.ajax`](https://api.jquery.com/jQuery.ajax/) instead of `.load` and leveraging the success/error callbacks. – Alexander Nied Dec 07 '16 at 15:05
-
@anied : replace .load with .ajax? it didn't work. please advice – Dec 07 '16 at 15:12
-
I didn't mean to simply switch it-- there are examples in the documentation of how to leverage the success callback. Can you please state which plugin is providing the `.dialog` method? This will be helpful in providing an answer. – Alexander Nied Dec 07 '16 at 16:40
-
Possible duplicate of [this](http://stackoverflow.com/questions/1964839/how-can-i-create-a-please-wait-loading-animation-using-jquery) – philantrovert Dec 07 '16 at 16:48