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:
  onload event  Paul at 17:31 on Saturday, April 03, 2004
 

Anyone able to help me with this: I am loading an html page that contains a tree menu into the left hand frame of set. I need this event to trigger the loading of another html page into the right hand frame.

Thanks

  Re: onload event  Troy Wolf at 18:11 on Saturday, April 03, 2004
 

Paul, there are of course several strategies that would work, but here is one. If you want something to happen in the right frame after the left frame loads, then in the left frame source, include some javascript like this.

<script language=javascript>
LoadTrigger() {
top.RightFrameName.location = "MyPage.html";
}
window.onload = LoadTrigger;
</script>


You could always fire this in the body tag of the left frame like this:

<body onload="top.RightFrameName.location = 'MyPage.html'">


I prefer the first because it gives you a function where you can easily add several things if you want.
Troy Wolf: site expert
Shiny Solutions









CodeToad Experts

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








Recent Forum Threads
•  Testing file for type of data
•  Running VB6 application as a ASP.NET application
•  login system with asp.net
•  Re: Help: Trouble with z-Index and SELECT lists
•  What is wrong with this ASP codes? It don`t seem to work???
•  Need help with ListBox control
•  Re: Good Javascript/DHTML Reference
•  Re: scrolling table
•  Re: simulation of road traffic


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2004