PDA

View Full Version : Refresh another frame


Jt107
11-15-2002, 02:47 PM
I am trying to refresh another frame while navigating on the menu frame, but it does not work, I have an onclick event for the links, so I simply add top.header.location.reload(); i even removed the first onclick event and it did not work either.

here is the code:
<frameset cols="180,*" framespacing="0" frameborder="0" border="0">
<frame src="nav/menu.cfm" name="menu" id="menu" frameborder="0" scrolling="auto" marginwidth="0" marginheight="0">
<frameset rows="50,*" framespacing="0" frameborder="0" border="0">
<frame name="header" src="header.cfm" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
<frame name="body" src="index.cfm" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0" noresize>
</frameset>
</frameset>

Is it because it is nested, I tested if not nested it works.

Thanks

beetle
11-15-2002, 02:54 PM
try

top.frames['header'].location.reload();

Jt107
11-15-2002, 02:59 PM
Thanks, but it does not work for me either.

cg9com
11-15-2002, 03:23 PM
could you use href with a target?

Jt107
11-15-2002, 03:38 PM
The links are targeting the body(main frame). Could your explain you idea? Thanks

Jt107
11-15-2002, 04:11 PM
Thanks all. It is working.

beetle
11-15-2002, 04:52 PM
Why don't you let us know what worked? :)

Jt107
11-15-2002, 11:08 PM
Sorry, I was not being clear. Both

top.frames['header'].location.reload(); or
parent.header.location.reload();

Reload the page. It was sth else disabled it.

whammy
11-16-2002, 02:40 AM
I hate that "sth else" command. ;) I can't ever get that to work.

beetle
11-16-2002, 02:53 AM
What is sth else??? Never heard of it....

whammy
11-16-2002, 03:05 AM
LOL! Uhh, apparently it was a typo, but I'm not sure NOW. :D

Jt107
11-17-2002, 06:04 PM
Even worse, I was making changes on one folder and testing another!!

what else deserve to be laughed at?