- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2015 11:25 AM
Hi All,
I'm calling a script include that can take about a minute to run (it's a doozy, but necessary), which is being fired from an onchange script in a catalog item. It's a very simple form and so it's quite possible that a user will complete it before the script is complete. I'd like to add an alert that fires either on the onchange or perhaps onsubmit and stays up until the include has returned a value. I'm sure it's possible, we've got something similar that happens within our cart, but I haven't had any luck figuring it out. Your help is much appreciated.
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2015 12:31 PM
Thanks, guys. I ended up stumbling onto the Custom Dialog article and it works great. Much like the OOB showLoadingDialog():
var gdw = new GlideDialogWindow('show_list'); |
gdw.setTitle('Gimme a second. Sheesh.');
gdw.setSize(100,300);
gdw.render();
::insert code::
gdw.destroy();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2017 06:11 AM
Nice, thanks.