codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Loading Sequence of Frames  Archive Import (webbie_newbie) at 22:59 on Thursday, August 14, 2003
 

I have a prob here. I would like the loading of frames in a particular sequence; eg the centre frame before the left frame. This is against the natural sequence of page load. Is there anyway I can set this?

  Re: Loading Sequence of Frames  Troy Wolf at 13:25 on Friday, August 15, 2003
 

I give a solution for this in this thread:
http://www.codetoad.com/forum/15_20218.asp
This thread was IFRAME specific, but the exact same code ideas work for normal FRAMESETs.

Now if you want the center frame to load first, then left, then top, specify the center frame`s source in the frameset, but for the other frames, specify a blank page or just src="". If your left frame is named "left", then in your center frame`s LoadTrigger code, add this:

function LoadTrigger() {
top.left.location = "MyLeftPage.html";
}
window.onload = LoadTrigger;

You can add this same code to MyLeftPage.html to have it load the top frame.

Now..a possible problem is that everytime the left frame navigates, it will reload the top---but probably the only page that changes is the center frame. Depending on how you exactly want this to work, you may find you need to add code to first see if the other frame is already loaded--if so, don`t reload it.

Hope this helps.
Troy Wolf: site expert
SnippetEdit Website Editor









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Doubles .toString Error: double cannot be dereferenced.
•  Re: What VBA code can I use to extract the IP Address
•  Re: difference between activex dll and an exe
•  Re: New user, trying to figure out how `find` works....
•  Re: adding a querystring parameter in a button click event
•  Re: onclick thumbnail images in gridview or datalist
•  Re: MDI form open size and location
•  Re: where can i download javax.speech package
•  Re: need help with main()


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2011