Refresh sub frame in frameset using javascript

Author Topic: Refresh sub frame in frameset using javascript  (Read 557 times)

Offline ngomaichiTopic starter

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 5
  • Karma: 0
    • car racing games download for mobile
Refresh sub frame in frameset using javascript
« on: 07-20-2016, 02:48:49 »
I would like to refresh a sub frame after the submit button is clicked on a different page. I have this working for two frames in the same frameset but the top frame will not reset the menu frame or sabre frame? I have seen a few examples around but I'm not getting it.

Here is my code

"Index page"

<frameset frameborder="NO" framespacing="0" rows="60px,80%">
<frame name="top" id="top" src="./top.php" name="top" scrolling="no">
<frameset frameborder="NO" framespacing="0" cols="420px,70%">
<frame name="menu" id="menu" src="./menu.php">
<frame name="sabre" id="sabre" src="./sabre.php">
</frameset>
</frameset>
"The submit on the top page"

'<input onclick="parent.menu.menu_refresh()"
"javascript on menu page"

<script type="text/javascript">
function menu_refresh(){
setTimeout(
function()
{
window.location.reload();
}, 2000);
}
</script>
By the looks of it parent term in the submit button is not referring back to the right level and cant find the menu page. Like I said this works when refreshing sabre page from menu and vice versa, but not for top page to menu or sabre.
« Last Edit: 07-20-2016, 02:51:55 by ngomaichi »


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1009 Views
Last post 10-17-2011, 02:10:09
by manvbf
3 Replies
1825 Views
Last post 06-04-2015, 23:00:00
by MarcoLeitner
3 Replies
1207 Views
Last post 10-07-2012, 23:11:58
by aadi14
2 Replies
1900 Views
Last post 02-12-2016, 01:44:22
by Shikha Singh
1 Replies
554 Views
Last post 10-10-2016, 02:21:04
by c-gun21000