How to refresh whole frameset from the frame?

Discussion in 'JavaScript' started by joshua__lim, Jan 24, 2010.

  1. #1
    I'll a newbie and I'm having difficulty trying to refresh the whole frameset from a hyperlink on one of the frames. I've searched google and tried many options, about 6 or 7 codes, but failed. Is there a way to do that or what I am trying to do is impossible? Grateful for any tips.

    This is among one of which i tried:
    <a href="#" onClick="opener.top.location.reload()">Homepage</a>

    Very briefly, what i need to do is to refresh the entire frameset - the effect which can be obtained by pressing on the RELOAD button on the internet browser.

    This is how the frame looks like:

    <html>
    <head>
    <title>Client</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    </head>
    <frameset rows="80,*" frameborder="NO" border="0" framespacing="0" bordercolor="#CCCCCC">
      <frame name="topFrame" scrolling="NO" noresize src="../html/eng-utf-8/top.htm" >
      <frameset cols="178,*" frameborder="No" border="0" framespacing="0" bordercolor="#CCCCCC"> \
       <frame name="leftFrame" noresize src="left.php">    
        <frame name="mainFrame" src="welcome.php">
      </frameset>
    </frameset>
    <noframes>
    <body bgcolor="#FFFFFF" text="#000000" >
    </body>
    </noframes> 
    </html>
    Code (markup):
    I am trying to refresh this entire frame using a link on the left frame, left.php.
     
    joshua__lim, Jan 24, 2010 IP
  2. Joak1m

    Joak1m Peon

    Messages:
    135
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <a href="javascript:location.reload(true)">Refresh</a>
    HTML:
    Maybe?
     
    Joak1m, Jan 25, 2010 IP
  3. joshua__lim

    joshua__lim Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, this only refreshes the frame on which the link is on. :) Someone else suggested the following, which is close, works in IE but not on Firefox.

     
    joshua__lim, Feb 18, 2010 IP
  4. Logic Ali

    Logic Ali Well-Known Member

    Messages:
    170
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #4
    onclick="top.location.href = top.location.href"
    Code (markup):
     
    Logic Ali, Feb 18, 2010 IP