Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > help with FRAMES?

help with FRAMES?
Thread Tools
Senior User
Join Date: Oct 2001
Location: Indiana
Status: Offline
Reply With Quote
Jul 27, 2002, 01:06 PM
 
I would like to have a link (in a script) open from the left frame into the right frame.
     
Professional Poster
Join Date: Oct 2000
Location: Toronto, ON
Status: Offline
Reply With Quote
Jul 27, 2002, 01:28 PM
 
That's pretty easy, just make sure the link has a TARGET= line, like this:
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">&lt;A HREF=&quot;1.html&quot; TARGET=&quot;name of frame&quot;&gt;Link&lt;/A&gt; </pre><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">

<small>[ 07-27-2002, 02:29 PM: Message edited by: ReggieX ]</small>
The Lord said 'Peter, I can see your house from here.'
     
Senior User
Join Date: Oct 2001
Location: Indiana
Status: Offline
Reply With Quote
Jul 27, 2002, 01:31 PM
 
thanks for the quick response, I was sure it was easy...I will give it a try.
     
Senior User
Join Date: Oct 2001
Location: Indiana
Status: Offline
Reply With Quote
Jul 27, 2002, 01:37 PM
 
what do you mean when you say "name of frame" do you mean the local file name like "main.html"
     
Professional Poster
Join Date: Oct 2000
Location: Toronto, ON
Status: Offline
Reply With Quote
Jul 27, 2002, 04:53 PM
 
The name of the frame is the name you gave it in the <FRAMESET> tag.
Just a quickie example:
We'll say that this is your home.html, and it has a frameset defined like so:
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">
&lt;FRAMESET ROWS=&quot;3&quot;&gt;
&lt;FRAME SRC=&quot;1.html&quot; NAME=&quot;one&quot; SCROLLING=&quot;auto&quot; NORESIZE&gt;
&lt;FRAME SRC=&quot;2.html&quot; NAME=&quot;two&quot; SCROLLING=&quot;no&quot; NORESIZE&gt;
&lt;FRAME SRC=&quot;3.html&quot; NAME=&quot;three&quot; SCROLLING=&quot;no&quot; &gt;
&lt;/FRAMESET&gt;</pre><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">The 1.html has the link, and you want to target the middle frame in your link. That's where you'd have this code:
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">
&lt;A HREF=&quot;newpage.html&quot; TARGET=&quot;two&quot;&gt;Link&lt;/A&gt;
</pre><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">So now the 2.html page is replaced in the middle frame by newpage.html

<small>[ 07-27-2002, 05:54 PM: Message edited by: ReggieX ]</small>
The Lord said 'Peter, I can see your house from here.'
     
Senior User
Join Date: Oct 2001
Location: Indiana
Status: Offline
Reply With Quote
Jul 28, 2002, 12:55 AM
 
THANKS!!!! THAT WORKED LIKE A CHARM!
     
Mac Elite
Join Date: Jul 2002
Location: Tronna
Status: Offline
Reply With Quote
Aug 1, 2002, 02:25 PM
 
Cool! Always glad to help.

Reg
     
   
Thread Tools
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -5. The time now is 06:05 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2