?
Solved

FRAMES set priority

Posted on 2000-03-24
7
Medium Priority
?
162 Views
Last Modified: 2010-04-09
Hi if I have 3 frames in my web is it then possible to define, that the client shall download Nr1 first, before starting on the two others ?
0
Comment
Question by:win32
7 Comments
 
LVL 19

Expert Comment

by:daveamour
ID: 2653277
Yes

In the <Body> Tag of the first frame have some JavaScript which then populates the other 2 frames.

In other words have your original frameset defined with the first frame you want downloading and have blank pages in the other two.

Then in the <Body> Tag of the first frame have something like this.

<Body onLoad="parent.frames[1].location.href='Page2.htm'">

The JavaScript statement will not be executed until the first page has loaded.

You could include simillar code in the second frame to totally control the order or have two commands in the first frame eg

<Body onLoad="parent.frames[1].location.href='Page2.htm'; parent.frames[2].location.href='Page3.htm'">

Does this help

Dave

0
 
LVL 22

Accepted Solution

by:
CJ_S earned 30 total points
ID: 2653289
No

if you have
frame1
frame3
frame2

in your framesettings it'll start with frame1, then frame3 and then frame2....it works in the order it is in the file.
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 2653324
*LOL*
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:sysedco
ID: 2653405
Dave's recommendation will definately work, but you'll have to load a dummy blank HTML document into the other frames in the normal HTML code and then use the JavaScript functionality that he mentioned.

Tom Carpenter
http://www.techrover.com
0
 

Expert Comment

by:dunk4dyce
ID: 2654183
you dont need to load dummny blank html docs you just dont specify any src
ie
<FRAME name="something>

no src !
0
 

Author Comment

by:win32
ID: 2654584
Hi dunk4dyce I can se what you mean, but if the browser automaticly loades the first (like CJ_S discribe) then there is no problem, & also no need to use OnLoad"";.
0
 

Author Comment

by:win32
ID: 2895727
Comment accepted as answer
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question