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

Creating empty frames

Status
Not open for further replies.

philcha

Programmer
May 10, 2000
109
GB
Suppose you want to creae a frameset where 1 frame is initially empty, e.g. because it's going to be filled in response to user action in another frame.<br><br>IE presents no problem&nbsp;&nbsp;-&nbsp;&nbsp;you can create a frame with no SRC attribute and IE will display a blank area and allow you to fill it via e.g. Javascript.<br><br>Netscape's something else!<br>*&nbsp;&nbsp;you must give the empty frame a SRC attribute, otherwise NN won't create the frame object and, when you try to refer to it in Javascript, you'll get errors like &quot;frame_name has no properties.&quot;<br>*&nbsp;&nbsp;you must put something in the SRC attribute&nbsp;&nbsp;-&nbsp;&nbsp;SRC=&quot;&quot; causes NN to display the directory listing!<br>*&nbsp;&nbsp;the something must exist, otherwise you'll get a 404 error in the empty frame.<br>*&nbsp;&nbsp;so create a dummy page and set the empty frame's SRC to point to this.&nbsp;&nbsp;The dummy page can contain either &quot;watch this space text&quot; or whitespace.<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top