- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2015 11:25 PM
I have created a button on click of which a script include is called. I am using getXMLWait() for response to come from script include. It takes very much time to have the response from script include because of large processing in my script.
So for a while it looks like nothing is happening after clicking that button.
Is there any way i can show loading form or processing meanwhile on the screen?
i have used showLoadingDialog() method before calling my script include but it is not working..
My script is:
function XYZ() {
showLoadingDialog();
var sub = new GlideAjax("XYZOrder");
sub.addParam('sysparm_name', "Order");
sub.getXMLWait();
var yes = sub.getAnswer();
hideLoadingDialog();
}
Please Help!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2015 02:38 PM
I've run into this as well, some browsers don't load it for it processes to quickly; I've found a workaround with using setTimeout()
Could try that and see if it assists? (long shot but may work).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2015 11:42 PM
Hi Inderpal,
You may find the below link helpful.
http://www.cavucode.com/blog/2015/4/8/fujiforty-hierarchicalworker-and-progress-viewer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2015 11:48 PM
The code you have should work. Is the script evening getting called?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2015 12:05 AM
Yes, script is working perfectly fine...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2015 12:23 AM
Forgot to add...
I am getting loading dialog in Mozilla browser only for Eureka version.
But it is not working for any other browser for any version.