Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 04-05-2006, 12:22 AM   #1 (permalink)
 
True Techie

Join Date: Nov 2004

Posts: 129

180Mhz

Default Frames page trouble.

How do I get the navigation sidebar to load its link in the main frame? I am trying to use
"location.href='directory/page.htm'"
java script in a java menu. It works but loads the page in the navigation frame, how do I get it to load in the main frame?
__________________
---------------------
Abit NF7-S mobo
AMD Sempron 2500+ @ 1902MHz
Nvidia xfx ge-force 5200, 128MB
WD 20GB HDD SATA (system)
Maxtor 120GB HDD IDE (storage)
1024MB Dual Cannel 400MHz RAM
350W Aurora PSU
Win XP SP2
Memorex 16x Dual Layer DVD +/- RW
---------------------
180Mhz is offline  
Old 04-05-2006, 09:33 AM   #2 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default

if i remember correctly, anchor tags have a target attribute. you have to add the target='framename' in the anchor tag in the nav frame. Change framename to the name set in your frame setup.
office politics is offline  
Old 04-05-2006, 09:34 AM   #3 (permalink)
 
Super Techie

Join Date: May 2005

Posts: 479

furtivefelon

Default

reasonably sure you don't need javascript to do this.. You may want to explore the target directive in <a> tags.. Though, i might be wrong, as it's been 2 years since i last used frames..

Try search on google about the proper use of frames..
__________________
lisp hacker
running: FreeBSD 5.4 - still learning
develop with: SBCL + emacs for lisp, Anjuta IDE +gcc for c, SPE for python..
browse with: opera
furtivefelon is offline  
 
Closed Thread

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On