Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linking INTO a frame on ANOTHER WINDOW.....

Status
Not open for further replies.

dvsboy

Programmer
Nov 20, 2002
5
CA
Hello,

I have a site in progress, left Nav, middle content, right Sub menu nav (which calls different HTM files into right frame as need bases on choices on left nav) the problem is - the right frame which has all the sub menu content - if the user picks something at this point - my html file residing in the right frame at this time - cannot link to the frames (middleframe is where I'd like the content to appear.) It just opens a new window with the respective link because it does not belong to the frameset of INDEX.HTM. Is there a way to tell all my RIGHT_SUB_MENU_NAV HTML files - to jump to INDEX.HTM_MIDDLEFRAME with the new content? Or do I need to have 9 or so HARD coded rightframe.htm's for all occasions??

I'm stumped :(
 
In the links in the sub menu at the right, you have this added, right?:
target="middleframe"

Rick
 
yeah - I tried that - I think that's just if your within a frameset and you just want to target another frame - but I'm coming from a an html file that's called INSIDE the right frame - but when your coding the called HTML file - it itself is not part of the frame - technically this is a stand alone window - that needs to target a frame INSIDE ANOTHER window - I guess I'm not being clear enough.... It'd be like having a little floating window with a menu in it - and under that window was another window full of frames, and when you click a menu option on this seperate little window - it changes the content of the MAIN window in the middle frame - which is a whole different story it seems.....

 
I know what you are trying to say, but I don't think that you are right. How are you using your left menu right now? You are linking with targets to the middleframe, correct? I have done that before and it's worked fine. I don't see why it would be any different now.--Unless you are saying that there is a frameset inside of a frame in a frameset. Is that the problem? You could use JS if nothing else works:
<a href=&quot;#&quot; onClick=&quot;top.middleframe.location.href='page2.html';return false;&quot;>Click Me</a>

Rick
 
I ahve the left menu targeting to the middleframe just fine - because the left frame code is hardcoded into the leftframe - it never changes - the left menu is always the same - so you can out your code right in there - but the right menu changes several times - so I've called stand alone html pages each with it's own menu INTO that frame, so now - if your writing these little side pages that get called into the right frame - how do you point to the middle frame when this page your currently writing - isn't in frames at all? it just gets displayed in the right one when needed, so, when you click on a rightframe menu (which is basicly ANOTHER explorer window) it doesn't seem to know there is a frameset to point to - I've tried a bunch of target options - but I think your right - it's gunna have to be JS - cause I need to tell it - WHAT PAGE has the frameset, and WHICH frame to go to...

I'm sorry if I've said this in a way that sounds silly - I admit to being mostly a graphics guy - tryin to do a site, but I've been researching this - and yer right, the left menu works awesome - and I understand it - but these standalone html's that get pulled in - just need to directed one step further - and I just couldn't do it :(

 
I truely appreiate the help by the way...

 
I wonder if this makes more sense...

I can figure out the hiearchy of it, but basicly what I need to know how to do is:

TARGET a FRAME on one FRAMES PAGE, FROM a NON frames page.

so 2 completely seperate pages - one controlling the content in a certain frame on the other.

?

 
Do you have a link? I don't see how you can &quot;hardcode&quot; the html for the left frame. In your frameset, for the left frame, you have a <frame src=&quot;left_frame.html&quot;>, right? If so, then that will work the same as the right_frame one that changes. If you have a URL, I will check it out.

Rick
 
I think this is what I am trying to do. I have a page with two frames in it, where the leftmost frame is the menu and the other one is the content frame that displays what was clicked on the menu.

However, I have another page that opens (via javascript) and has links that I want to open in the original window's content frame. When I created the frameset, I gave the content frame a name of &quot;Content&quot; and I set the target of the hyperlink in the separate window to the same name. It doesn't open the link in the frame, but instead opens a new window whose name I suppsose is &quot;Content&quot;. So I guess it doesn't see the frame named &quot;Content&quot; and opens another window.

Is it possible to make this work like I want it to? If so, how? Thanks.
 
Sorry--I have been away for a few days. I don't see why this doesn't work. I have done it myself multiple times (before I stopped using frames). If it doesn't work, I will need to see the outputted code for the right frame. Otherwise you can use JS. Did you try the line I posted above?:
<a href=&quot;#&quot; onClick=&quot;top.middleframe.location.href='page2.html';return false;&quot;>Click Me</a>

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top