PDA

View Full Version : set the priority to frame



pankaj.ghadge
10-22-2008, 02:03 PM
Hello i want to load the left frame first and then right but it is not happening . Right frame is loaded first.
So is there any solution that i can load the left frame first............

<frameset cols="15%, *" id="fs1" >
<frame src="left.html" name="left" frameborder="1" id=leftId>
<frame src="right.html" name="right" frameborder="1" id=rightId>
</frameset>

so please tell me the solution ...............

jscheuer1
10-22-2008, 03:14 PM
Generally this is a bad idea, if your design cannot survive the vagaries of server availability, it probably needs to be reworked. Most users will be patient as the frameset loads. However, you could try (untested):


<frameset cols="15%, *" id="fs1"
onload="window.frames['right'].location.href='right.html';this.onload = function(){return;};">
<frame src="left.html" name="left" frameborder="1" id=leftId>
<frame src="about:blank" name="right" frameborder="1" id=rightId>
</frameset>

or:


<frameset cols="15%, *" id="fs1">
<frame src="left.html" name="left" frameborder="1" id=leftId
onload="top.frames['right'].location.href='right.html';this.onload = function(){return;};">
<frame src="about:blank" name="right" frameborder="1" id=rightId>
</frameset>