Need a "Please Wait" pop up window for catalog item

davehurley
Giga Contributor

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.

1 ACCEPTED SOLUTION

davehurley
Giga Contributor

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();


View solution in original post

5 REPLIES 5

Nice, thanks.