Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Need to update 2 frames with one link (http://www.greenguysboard.com/board/showthread.php?t=12457)

Thomas 2004-10-21 09:20 AM

Need to update 2 frames with one link
 
Well I hope the subject says it all........

TIA
Thomas

swedguy 2004-10-21 10:04 AM

PHP Code:

<a href="javascript:window.open('two.html','[b]two[/b]');window.open('three.html','[b]three[/b]');void(1)">click</a

Just change "two" and "three" to the correct frame names and there shouldn't be a space in "javascript", it seems like it's the board script that does that.
What it will do is load two.html in the frame with name "two" and three.html in the frame with name "three".

Thomas 2004-10-22 05:13 AM

Works great except that I get another pop-up with file not found....


PHP Code:

javascript:window.open('produkter_left.htm','left_frame');window.open('produkter.shtml','huvud');void(1

/Thomas

swedguy 2004-10-22 05:32 AM

Hmmm, not sure why it does that.

http://www.nuvisiongroup.com/tmp/

Check if that one works for you. It works in IE6 for me.

Thomas 2004-10-26 02:18 AM

Quote:

12.4. How do I update two frames at once?
There are two basic techniques for updating multiple frames with a single link: The HTML-based technique links to a new frameset document that specifies the new combination of frames. The JavaScript-based solution uses the onClick attribute of the link to update the additional frame (or frames).

The HTML-based technique can link to a new frameset document with the TARGET="_top" attribute (replacing the entire frameset). However, there is an alternative if the frames to be updated are part of a nested frameset. In the initial frameset document, use a secondary frameset document to define the nested frameset. For example:




<body><br /> <!-- Alternative non-framed version --><br /> </body>

A link can now use the TARGET="Display" attribute to replace simultaneously all the frames defined by the frameset2.html document.

The JavaScript-based solution uses the onClick attribute of the link to perform the secondary update. For example:

Update frames

The link will update Frame1 with URL1 normally. If the reader's browser supports JavaScript (and has it enabled), then Frame2 will also be updated (with URL2).


Cut & paste from: http://www.htmlhelp.com/faq/html/fra...#frame-update2

Worked better for me! Thanks anyway Swedguy!

/Thomas


All times are GMT -4. The time now is 11:39 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc