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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to stop frame execution 1

Status
Not open for further replies.

botatun

Programmer
Mar 7, 2006
40
0
0
US
The front page of my site loads a lot of tables. The performance is realy bad.
Tables created in frames and pass generated html code to parent main window.
I added stopLoad() to my front page that
close all open frames, if user click on menu option.
Code:
function stopLoad()
{
  window.frame1.innerHtml = ""; // Schedule Meassage boards
  .....
  window.frame8.innerHtml = "";

  window.frame1.close(); // Schedule Meassage boards
  ...  
  window.frame8.close(); // load PO w/o BSR and UPC
}

Unfortunately, it is not stop frames - they continue to execute code.

How to stop it?
Or, may be, what is the strategy you use to improve performance?
 
If I'm understanding you correctly.. you could simply write a blank value to the required frames:

Code:
function StopLoad(){
parent.main_frame.document.write('');
}

Then simply call this function on the body "onload" event from one of your framed pages.

Hope this helps!

Cheers

Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top