Results 1 to 2 of 2

Thread: set the priority to frame

  1. #1
    Join Date
    Oct 2008
    Posts
    40
    Thanks
    3
    Thanked 1 Time in 1 Post

    Smile set the priority to frame

    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 ...............

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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):

    Code:
    <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:

    Code:
    <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>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •