HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
How do I display in 2 frames
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
drofdarb



Joined: 14 Jun 2004
Posts: 3
Location: Albert Lea, MN USA

PostPosted: Mon Jun 14, 2004 9:56 pm     How do I display in 2 frames Reply with quote

I'm using 3 frames: Top, Left (menu), Right (display area).

When I click a button in the Top frame, I need to display a menu page in the Left (menu) frame and display a clear page in the Right (display area) frame.

How do I do this?
Thanks...fab
mjpliv



Joined: 11 May 2004
Posts: 406
Location: Nova Scotia

PostPosted: Tue Jun 15, 2004 3:25 am     Reply with quote

You "target" your links to open in a specific frame.

Code:
<a href="menu.html target=Left>


where Left is the name of frame you set with your frameset tag.
mjpliv



Joined: 11 May 2004
Posts: 406
Location: Nova Scotia

PostPosted: Tue Jun 15, 2004 3:29 am     Reply with quote

You can read up on the uses of the target command here -

http://www.htmlcodetutorial.com/linking/_A_TARGET.html
drofdarb



Joined: 14 Jun 2004
Posts: 3
Location: Albert Lea, MN USA

PostPosted: Tue Jun 15, 2004 6:53 am     Reply with quote

mjpliv wrote:
You "target" your links to open in a specific frame.

Code:
<a href="menu.html target=Left>


where Left is the name of frame you set with your frameset tag.

--------------------------------------
I guess I didn't state the problem clearly. I know how to use "target" to get an html file displayed in a specific frame. What I need to do is display 2 html files in 2 different frames when a single button is clicked.

Putting it in html code form, I need something like.....

<a href="menu.html target=Left AND "blank.html target=display-frame>

I couldn't find anything in the html references that explain if I can do this and how to do it. I saw that you can do multiple commands for the "onload" function by separating them with a semi-colon (;). I think I tried this for the <a href...> function, but it did not work.

In regards to your second response... I use the tutorials and references in the links that you gave me. I found them through search engines and eventually got to this forum because of them.
Thanks for your help...fab
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8313
Location: Castle Pines North, CO USA

PostPosted: Tue Jun 15, 2004 3:43 pm     Reply with quote



I think this is what you want:
http://medlem.spray.se/dbb/Scripts/MultipleUpdate/MultipleUpdate.html
http://www.sbrady.com/hotsource/javascript/twoframes.html
http://www.javascriptkit.com/javatutors/twoframes1.shtml
http://www.pageresource.com/html/frame4.htm
drofdarb



Joined: 14 Jun 2004
Posts: 3
Location: Albert Lea, MN USA

PostPosted: Tue Jun 15, 2004 9:50 pm     Reply with quote

Corey Bryant wrote:
I think this is what you want:
http://medlem.spray.se/dbb/Scripts/MultipleUpdate/MultipleUpdate.html
http://www.sbrady.com/hotsource/javascript/twoframes.html
http://www.javascriptkit.com/javatutors/twoframes1.shtml
http://www.pageresource.com/html/frame4.htm

---------------------------
Thank you Corey. This is what I need. I will try it out tomorrow. I'm outa gas now!
...fab
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial