Forum Moderators: open

Message Too Old, No Replies

link in a frame has to refresh all the frames

refresh all frames

         

rsennat

9:29 pm on Dec 15, 2005 (gmt 0)



hi all,
i have in total 3 frames, title menu, left and content frame. I have a link in the "left" frame. when i click on it both the content and left frame has to refresh.

how this can be done. i tried using, target=_parent also even with _top. nothing is working. it brings up all the content in the same frame.

thanks
senthil

tedster

12:06 am on Dec 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forums, resnnat

There are two ways I know of to get this result. One is to make the link load a full, new frameset using target="_top" -- and configure the new frameset with the right content in each frame.

The second approach would be to use javascript to refresh more than one frame with a single click. See messge #17 in this thread:

[webmasterworld.com...]

The challenge here is that search engine spiders will not usually follow such a link -- so you need to make sure there is a non-javascript path to each page somewhere onthe site (on a sitemap page, for example) if search engine listings matter in this case.

kaled

12:56 pm on Dec 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



1) Set target="fr_main" (or whatever you call your content frame).
2) Use <body onLoad=somefunc()> on each content page to load change the other frames.
Use document.location.replace(newpage.html);

Kaled.