?
Solved

FRAMES set priority

Posted on 2000-03-24
7
Medium Priority
?
160 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 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
Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

 
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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 explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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).

762 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