Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reload a frame

Status
Not open for further replies.

bosky

Programmer
Oct 30, 2003
15
IN
Hi there,

My main page consists of 2 frames. In one of the instance i just need to reload the right frame. Is it possible to just reload the right frame?

Following is my frameset definition.
<html>
<head>
<title><?php print $site_title; ?></title>
</head>
<frameset cols=&quot;<?php print intval($table_menu_width+35); ?>,*&quot; border=&quot;0&quot;>
<frame src=&quot;<?php print $global_menu_location; ?>&quot; name=&quot;iain_menu&quot; frameborder=&quot;no&quot; scrolling=&quot;auto&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; noresize>
<frame src=&quot;<?php print $global_view_location.$global_frameset_view_parameters; ?>&quot; name=&quot;iain_main&quot; frameborder=&quot;no&quot; scrolling=&quot;auto&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; noresize>
</frameset>
<noframes></noframes>
</html>

Can some one tell me is it possible to reload only one frame or do i need to reload the page in order to refresh just the right frame.

Regards
Bosky
 
yes, you can do it:

parent.frame2.document.reload()

in your case:

parent.iain_main.document.reload() or parent.iain_main.reload()

(i'm not sure which one).
 
Is it possible to pass a URL to this function?

Coz i want to reload the right frame with a different URL depending upon the value sent to it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top