Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load page

Status
Not open for further replies.

MattNeeley

IS-IT--Management
Mar 7, 2004
94
US
We're using frames to load a VB ActiveX DLL inside of MSIE. Is there any way to make "Loading Please Wait..." appear inside of the framed page while it downloads the .cab file from the server and prepares to run the ActiveX DLL? This would be in the HTML portion somewhere.
 
Javascript will help here.

In the window you want the timer to appear, call showMessage() (which, in turn, calls loading()) as such:

Code:
var timeoutObject;
var interval = 5;
var current = 0;
var isDone = false;

function showMessage()
{
 LOADING.innerText = "loading";
 loading();
}//end showMessage()

function loading()
{
 timeoutObject = setTimeout("loading()", 1000);
 if(current == interval)
 {
  LOADING.innerText = "loading.";
  current = 1;
 }//end if
 else
 {
  LOADING.innerText += ".";
  current++;
 }//end else

 if(isDone)
 {
  clearTimeout(timeoutObject); 
  LOADING.innerText = 'Done.';
 }//end if
}//end loading()

Create a SPAN in that window with id='LOADING'. When your ASP is done doing whatever, send a message to this frame, setting isDone to true.

See if this works for you.

--Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top