Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2004-10-21, 09:20 AM   #1
Thomas
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
Thomas's Avatar
 
Join Date: May 2004
Location: Stockholm, Sweden
Posts: 319
Need to update 2 frames with one link

Well I hope the subject says it all........

TIA
Thomas
__________________
I like big boobs, do you?
Thomas is offline   Reply With Quote
Old 2004-10-21, 10:04 AM   #2
swedguy
Vagabond
 
swedguy's Avatar
 
Join Date: Aug 2003
Posts: 2,374
Send a message via ICQ to swedguy
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".
swedguy is offline   Reply With Quote
Old 2004-10-22, 05:13 AM   #3
Thomas
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
Thomas's Avatar
 
Join Date: May 2004
Location: Stockholm, Sweden
Posts: 319
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
__________________
I like big boobs, do you?
Thomas is offline   Reply With Quote
Old 2004-10-22, 05:32 AM   #4
swedguy
Vagabond
 
swedguy's Avatar
 
Join Date: Aug 2003
Posts: 2,374
Send a message via ICQ to swedguy
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.
swedguy is offline   Reply With Quote
Old 2004-10-26, 02:18 AM   #5
Thomas
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
Thomas's Avatar
 
Join Date: May 2004
Location: Stockholm, Sweden
Posts: 319
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:

<frameset cols="*,3*">
<frame src="contents.html" name="Contents">
<frame src="frameset2.html" name="Display">
<noframes><body>
<!-- Alternative non-framed version -->
</body></noframes>
</frameset>
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:

<a href="URL1" target="Frame1" onClick="top.Frame2.location='URL2';">Update frames</a>

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
__________________
I like big boobs, do you?
Thomas is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:41 PM.


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