Forum Moderators: open

Message Too Old, No Replies

Controlling a second window

         

chrman

2:59 am on Jun 7, 2001 (gmt 0)



Since i have been unable to figure out how to anchor my javascript menu, i have decided to try another approach.

This time i will have the menu located on it's own page, and the links will refer to a second window.
So no matter what link they go to in the nav bar in window1, it will display that information in window2.

any ideas on the best way to implement this, would i have to edit every link in my javascript file with a command to point to window2, or could it all be done with one global command?

toolman

3:16 am on Jun 7, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's pretty easy to do:

Whatever the frame name is in the frameset you're using, for instance

<frameset rows="1*,300,1*" border=0 frameborder="no">
<frame name= "topspace" noresize scrolling="no" marginwidth=0 marginheight=0 frameborder="NO" src="top.html">
<frameset cols="168*,428,184*" border=0 frameborder="no" rows="*">
<frame name="lspace" scrolling="no" noresize marginwidth=0 marginheight=0 frameborder="NO" src="sideleftbegin.html">
<frame name= "mainFrame" noresize scrolling="NO" marginwidth=0 marginheight=0 frameborder="NO" src="beginjourney.html">
<frame name="rspace" scrolling="NO" frameborder="NO" noresize marginwidth="0" marginheight="0" src="sidert.html">
</frameset>
<frame name="botspace" scrolling="no" noresize marginwidth=0 marginheight=0 frameborder="NO" src="bottom.html">
</frameset>

If I had a bunch of links in frame name="lspace" and I want to control the frame named "mainFrame" then I would simply use the target tag on the hyperlinks like this:

<a href="foofoo.html" target="mainFrame">

knighty

8:00 am on Jun 7, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



do you mean a seperate window or frame?

if its a window you can just launch a pop up which then loads the content into that window

GWJ

11:57 am on Jun 7, 2001 (gmt 0)



>>>Since I have been unable to figure out how to anchor my javascript menu.

This might help you for the anchoring of a JS menu. I think I found the effect that you initialy wanted here [scriptfx.com] and here [scriptfx.com] .

Brian

chrman

1:07 pm on Jun 7, 2001 (gmt 0)



i am looking to use two windows, not frames.

as for GWJ, i have seen those two and unfortunatly, none of them allow me to use multiple levels of menu. For this application i require 4 sub-levels which overall contain hundreds of links...

So since i have not been able to find an answer in several days of looking, i have decided to try the 2 window approach, if it can be done

knighty

1:32 pm on Jun 7, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[wsabstract.com...]

have good tutorials on controlling windows etc