SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: reload frameset

  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2006
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    reload frameset

    hey all

    I have three frames like below


    <frameset border="0" frameSpacing="0" rows="120,*,64" frameBorder="0">

    <frame name="header" marginWidth="0" marginHeight="0" src="PageHeader.aspx" noResize
    scrolling="no">
    <FRAME name="main" marginWidth="0" marginHeight="0" src='<%=MainFrame()%>' noResize>
    <frame name="footer" marginWidth="4" marginHeight="0" src="PageFooter.aspx" frameBorder="0"
    noResize scrolling="no">
    <noframes>
    <pre id="p2"></pre>
    <p id="p1">
    This HTML frameset displays multiple Web pages. To view this frameset, use a
    Web browser that supports HTML 4.0 and later.
    </p>
    </noframes>
    </frameset>

    I would like to no how to reload the pageheader frameset when the user is in the <%=MainFrame()%>. In the page header I have a toolbar, my aim is to in my form when the user is in a certain mode to disable the toolbar but since it loads only once I have no chance of doing this....

    can any1 help plz?

  2. #2
    SitePoint Addict darkwater23's Avatar
    Join Date
    Nov 2005
    Location
    Omaha, NE
    Posts
    335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Perhaps something like this?

    parent.header.location.href = 'toolbar.html?disable=true';

    Basically, if you have named your frames, you can reload the toolbar frame and pass something in the query string. You could then use that query string variable to enable and disable stuff.

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2006
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I dont understand ..... the header of my page is in a form called PageHeader (which has the toolbar) then there's a main one and then the footer of my page in PageFooter...each time the page is loaded i want it to reload a fresh copy of PageHeader......

    I was jus tryin to do this

    <body onload="top.frames[0].location.reload()">

    but it doesnt not allow body to be nested within a frameset.....

  4. #4
    SitePoint Addict darkwater23's Avatar
    Join Date
    Nov 2005
    Location
    Omaha, NE
    Posts
    335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wouldn't you want to put that onload event on the MainFrame page? Since there is a function there, is there dynamic content coming back or static page?

    If possible, add your onLoad to the main content. You could use the name of the frame instead of the array, as well.

    top.header.location.reload();

    I whipped up a quick frameset based on yours and calling the above function from the body tag of the main frame worked fine in IE and FF.

  5. #5
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Totti, you have at least 3 different threads related to this same question. That will only cause people to ignore your posts. Please delete the other two threads.

    Thanks


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
  •