function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RKRK 

"Please Wait" Status Message

Hey all,
As I continue to build my S-Controls,I'm stumbling upon some that are taking a bit longer to execute.  So my users know that the system is working and that the IE window is just not frozen, I want to present a pop-up status window stating something along the lines of "Please Wait...Records Being Processed" while a status bar moves below the messagte

I seem to recall one of the SControl examples posted either here, at Dreamforce or on the AppExchange possessing something like this for a Mass-Update use.

Anyone recall which it was?  I thought it was the "Mass Update Opportunities", but that doesn't seem to be the case.

Thanks, as always, for any input.

RK
Ron HessRon Hess
Here is the please wait markup

HTML code

Code:
<body onload="setup();"> 
<center>
<br><br><br>
Please wait, cloning Action Plan {!SFDC_Action_Plan__c.Name}<br> with plan items ... 
<br><br>
<img src="/img/waiting_dots.gif" alt="Please wait..." title="Please wait..." height="20" width="196">
</center>
</body> 
</html>

 
What you may discover is that if the browser is working really hard, the dots won't move...
try to use Async callbacks to free up the browser and the dots will move at bit anyway.


cheenathcheenath
Another option is to display a DOJO modal dialog.

Code:
<div dojoType="dialog" id="please-wait-dialog"
     bgColor="gray" bgOpacity="0.5" toggle="fade"
     toggleDuration="250">
    <b>Please Wait ...</b> <br> Loading ....
    This can take a min or two. Thanks
</div>

script to call this dialog looks like:

Code:
<script>
dojo.require("dojo.widget.*");
    dojo.require("dojo.widget.Dialog");

dojo.widget.byId("please-wait-dialog").show();
//do work  ...

dojo.widget.byId("please-wait-dialog").hide();
</script>

 
You can find an example of this in the Explorer here.

HTHs,




Message Edited by cheenath on 04-03-2007 09:54 AM