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

downloading time with frames 1

Status
Not open for further replies.

rhcp

Programmer
Dec 27, 2003
11
IL
Hey all. I got another 1 of thoes tricky problems. let's say you have 3 frames, natrually the browser will load the first top frame. How Can you change that habit and let the browser first load the last 3rd frame?? well I know how to do this if frames were images instead => you can load them in your memory chache by javascript:
var im= new Image()
im.src="yourimage.jpg"
that way it's in you memory and no need for downloading the img from host again when the html displays it.
by hey, how can I cotrol frames that way or in a similler way???????
Thx.
 

rhcp,

Use javascript to control your frame loading order.

Something like:

Code:
<frameset rows=&quot;33%, 33%, 33%&quot;>
	<frame name=&quot;frame1&quot; src=&quot;about:blank&quot;>
	<frame name=&quot;frame2&quot; src=&quot;about:blank&quot;>
	<frame name=&quot;frame3&quot; src=&quot;loadFirst.html&quot; onload=&quot;populateFrames();&quot;>
</frameset>

And then have a
Code:
populateFrames()
function in the script section of your frameset which starts the files loading in the first two frames once the third has loaded.

Hope this helps,

Dan
 
Hey Dan, your solution seems just right! and it's simple ( y haven't I thought of that............ :c) ) Thx!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top