Solved

FRAMES set priority

Posted on 2000-03-24
7
159 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 10 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
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 
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

Industry Leaders: 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!

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

724 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