| View previous topic :: View next topic |
| Author |
Message |
zanybrainy
Joined: 14 Jun 2005 Posts: 1
|
Posted: Tue Jun 14, 2005 4:25 pm how do link into a iframe for a page not in the frame page |
|
|
|
| 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
|
Posted: Wed Jun 15, 2005 4:06 am |
|
|
|
Is this link the source of the iframe or just a regular link (a href)? |
|
ariel
Joined: 22 May 2006 Posts: 12
|
Posted: Mon May 22, 2006 3:02 pm |
|
|
|
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
|
|
ariel
Joined: 22 May 2006 Posts: 12
|
Posted: Mon May 22, 2006 3:43 pm |
|
|
|
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
|
|
ariel
Joined: 22 May 2006 Posts: 12
|
Posted: Mon May 22, 2006 4:20 pm |
|
|
|
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...
|
Posted: Mon May 22, 2006 5:47 pm |
|
|
|
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
|
Posted: Tue May 23, 2006 3:18 am |
|
|
|
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
|
Posted: Tue May 23, 2006 8:14 am |
|
|
|
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...
|
Posted: Tue May 23, 2006 9:27 am |
|
|
|
| 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
|
Posted: Tue May 23, 2006 9:50 am |
|
|
|
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
|
Posted: Tue May 23, 2006 9:52 am |
|
|
|
| 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
|
Posted: Tue May 23, 2006 1:50 pm |
|
|
|
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
|
Posted: Tue May 23, 2006 2:00 pm |
|
|
|
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? |
|
|