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 link into a iframe for a page not in the frame page
Goto page 1, 2, 3  Next
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
zanybrainy



Joined: 14 Jun 2005
Posts: 1

PostPosted: Tue Jun 14, 2005 4:25 pm     how do link into a iframe for a page not in the frame page Reply with quote

I'am making a web page and on my home page i have a link that goes into a iframe in a different page i need help
Corey Bryant
Site Admin


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

PostPosted: Wed Jun 15, 2005 4:06 am     Reply with quote



Is this link the source of the iframe or just a regular link (a href)?
ariel



Joined: 22 May 2006
Posts: 12

PostPosted: Mon May 22, 2006 3:02 pm     Reply with quote

I'm having this same problem.

Here's what I want to do: Have an external link on a non-framed page link to either an iframe or a frame inside a seperate frameset.

These will not be relative links, they'll be fully qualified http://www.etcetc URLs.

The upshot will be external links loaded with my own small nav bar at the top, but it doesn't have to be a frameset.
Corey Bryant
Site Admin


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

PostPosted: Mon May 22, 2006 3:10 pm     Reply with quote

If you are lnking to a framed set - is this framed set on your website?

_________________
Corey
Loud Commerce | Loud Worx | Merchant Account Blog
ariel



Joined: 22 May 2006
Posts: 12

PostPosted: Mon May 22, 2006 3:43 pm     Reply with quote

Yes the frameset is on my own site.

Let me see if I can be a little more clear:

mysite.com/index.html
--> link to http://badjuju.org/ opens in frame B of external_link.html (which is a frameset)

OR

link from index.html to http://www.somesite.com/ opens in an IFRAME on external_link.html which is just a page (not a frameset) with an iframe on it.

In other words, how do i write a link that hits a "target" on a totally different html page?
Corey Bryant
Site Admin


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

PostPosted: Mon May 22, 2006 4:10 pm     Reply with quote

The target is a frame name on your webpage. What is the frame name that you want to target?

_________________
Corey
Loud Commerce | Loud Worx | Merchant Account Blog
ariel



Joined: 22 May 2006
Posts: 12

PostPosted: Mon May 22, 2006 4:20 pm     Reply with quote

I haven't made it yet, but I don't think you understand what I'm trying to do. I know to make a link load in an IFRAME, i have to put target="iframename" in the link.

What I DON'T know is how to do this:

page1.html - static page
page2.html - page with iframe

A link on page1.html when clicked will open page2.html with the link loaded in page2's iframe.
drake14



Joined: 29 Jul 2005
Posts: 132
Location: around...

PostPosted: Mon May 22, 2006 5:47 pm     Reply with quote

you would have to set a target

Code:
<target="framename">
Corey Bryant
Site Admin


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

PostPosted: Tue May 23, 2006 3:18 am     Reply with quote

Well we both answered the question but in case you don't know where to put it
Code:
<a href="http://www.example.com" target="framename">Click Here</a>
And a bit more information. However, if we both misunderstood, please try to explain differently.

_________________
Corey
Loud Info | Loud Worx | Merchant Account Blog
ariel



Joined: 22 May 2006
Posts: 12

PostPosted: Tue May 23, 2006 8:14 am     Reply with quote

But can that targeted framename be on a different page?

I don't know how else to explain it. I have two pages, one with an IFRAME. I want a link on the first page to open in the IFRAME on the second.

It seems like just using target="framename" could only target a frame *on that same page*, not one on a different page.
drake14



Joined: 29 Jul 2005
Posts: 132
Location: around...

PostPosted: Tue May 23, 2006 9:27 am     Reply with quote

Do you have a code to show us, or maybe an example website to help us understand better?
ariel



Joined: 22 May 2006
Posts: 12

PostPosted: Tue May 23, 2006 9:50 am     Reply with quote

See my later post for clearer code.

Last edited by ariel on Wed May 24, 2006 11:47 am; edited 1 time in total
ariel



Joined: 22 May 2006
Posts: 12

PostPosted: Tue May 23, 2006 9:52 am     Reply with quote

Also, I realize that to do this is poor nettiquete, but that's what the client wants despite my urging against it.
Corey Bryant
Site Admin


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

PostPosted: Tue May 23, 2006 1:50 pm     Reply with quote

Target the content frame - right now, you are targeting something else. If the site does not have a JavaScript to break out of frames to prevent this - then it should work.

_________________
Corey
Loud Commerce |
Loud Worx | Loud Ads
ariel



Joined: 22 May 2006
Posts: 12

PostPosted: Tue May 23, 2006 2:00 pm     Reply with quote

So, I can write a link on page1:
Code:
<a href="http://badjuju.org/" target="content">Link</a>


That will open badjuju.org in the 'content' frame on page2? How does the link on Page1 know to look for that target frame on Page2?
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
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