HighDots Forums  

Iframe question

alt.html alt.html


Discuss Iframe question in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sheldonlg
 
Posts: n/a

Default Iframe question - 11-04-2009 , 05:09 PM






I have never handled Iframes before and I don't know if this is possible.

I currently have a page with an Iframe. Inside of that Iframe is an
external web page (this is what the customer specifically wanted). This
works fine (although there is a bit of scrolling introduced due to its
capture).

Now, when a link inside that that external web page that is in the
Iframe is clicked, it takes over the whole parent page and doesn't stay
within the Iframe. Is there a way to keep it confined to the Iframe and
only have the contents of that Iframe change to the linked page?

I have searched Google, but found nothing about navigating links inside
of Iframes, just how to get pages initially into the Iframe.

Reply With Quote
  #2  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: Iframe question - 11-04-2009 , 05:31 PM






sheldonlg wrote:
Quote:
I have never handled Iframes before and I don't know if this is possible.

I currently have a page with an Iframe. Inside of that Iframe is an
external web page (this is what the customer specifically wanted). This
works fine (although there is a bit of scrolling introduced due to its
capture).

Now, when a link inside that that external web page that is in the
Iframe is clicked, it takes over the whole parent page and doesn't stay
within the Iframe. Is there a way to keep it confined to the Iframe and
only have the contents of that Iframe change to the linked page?

I have searched Google, but found nothing about navigating links inside
of Iframes, just how to get pages initially into the Iframe.
http://www.w3.org/TR/html401/present/frames.html#adef-target

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Reply With Quote
  #3  
Old   
sheldonlg
 
Posts: n/a

Default Re: Iframe question - 11-04-2009 , 06:36 PM



Jonathan N. Little wrote:
Quote:
sheldonlg wrote:
I have never handled Iframes before and I don't know if this is possible.

I currently have a page with an Iframe. Inside of that Iframe is an
external web page (this is what the customer specifically wanted). This
works fine (although there is a bit of scrolling introduced due to its
capture).

Now, when a link inside that that external web page that is in the
Iframe is clicked, it takes over the whole parent page and doesn't stay
within the Iframe. Is there a way to keep it confined to the Iframe and
only have the contents of that Iframe change to the linked page?

I have searched Google, but found nothing about navigating links inside
of Iframes, just how to get pages initially into the Iframe.

http://www.w3.org/TR/html401/present/frames.html#adef-target

I looked at that site, and maybe I missed it, but I didn't see any
answer to my question.

Here is my code snippet:

<iframe width="615" height="545" frameborder="1" scrolling="auto"
src="the_external_page.html" target="_self"></iframe>

As I said, it brings it up fine. However, when I click on a link inside
of the_external_page.html, it busts out of the iFrame and takes over the
who page. I want to keep it inside of the iFrame.

Reply With Quote
  #4  
Old   
dorayme
 
Posts: n/a

Default Re: Iframe question - 11-04-2009 , 07:01 PM



In article <ZtCdnXYoDOwwZmzXnZ2dnUVZ_t2dnZ2d (AT) giganews (DOT) com>,
sheldonlg <sheldonlg> wrote:

Quote:
I have never handled Iframes before and I don't know if this is possible.

I currently have a page with an Iframe. Inside of that Iframe is an
external web page (this is what the customer specifically wanted). This
works fine (although there is a bit of scrolling introduced due to its
capture).

Now, when a link inside that that external web page that is in the
Iframe is clicked, it takes over the whole parent page and doesn't stay
within the Iframe.
You do not give a URL to show this behaviour. Here is a URL where I do
not have this behaviour:

<http://dorayme.netweaver.com.au/frames/iFrameTargetTesting.html>

Do you have this behaviour with this?

Quote:
Is there a way to keep it confined to the Iframe and
only have the contents of that Iframe change to the linked page?

I doubt it. In my URL you will see no monkey business with links. But if
the website you are embedding in the iframe is not your own html doc and
has something like target="_blank" for its links or perhaps something
else, I can't think immediately of any way you can control this.

--
dorayme

Reply With Quote
  #5  
Old   
sheldonlg
 
Posts: n/a

Default Re: Iframe question - 11-04-2009 , 07:27 PM



dorayme wrote:
Quote:
In article <ZtCdnXYoDOwwZmzXnZ2dnUVZ_t2dnZ2d (AT) giganews (DOT) com>,
sheldonlg <sheldonlg> wrote:

I have never handled Iframes before and I don't know if this is possible.

I currently have a page with an Iframe. Inside of that Iframe is an
external web page (this is what the customer specifically wanted). This
works fine (although there is a bit of scrolling introduced due to its
capture).

Now, when a link inside that that external web page that is in the
Iframe is clicked, it takes over the whole parent page and doesn't stay
within the Iframe.

You do not give a URL to show this behaviour. Here is a URL where I do
not have this behaviour:

http://dorayme.netweaver.com.au/frames/iFrameTargetTesting.html

Do you have this behaviour with this?

Is there a way to keep it confined to the Iframe and
only have the contents of that Iframe change to the linked page?


I doubt it. In my URL you will see no monkey business with links. But if
the website you are embedding in the iframe is not your own html doc and
has something like target="_blank" for its links or perhaps something
else, I can't think immediately of any way you can control this.

It is not my own web site that is being embedded. I have no control
over those internal links. So, I guess the answer is "no".

Is there a way for the external site to come up in the iframe and any
link in it open a new tab or window? I tried target="_blank" in the
iframe definition, but that didn't work. I guess that is also not possible.

Reply With Quote
  #6  
Old   
dorayme
 
Posts: n/a

Default Re: Iframe question - 11-04-2009 , 07:52 PM



In article <X6WdnVF2Laa6gW_XnZ2dnUVZ_gOdnZ2d (AT) giganews (DOT) com>,
sheldonlg <sheldonlg> wrote:

Quote:
dorayme wrote:
In article <ZtCdnXYoDOwwZmzXnZ2dnUVZ_t2dnZ2d (AT) giganews (DOT) com>,
sheldonlg <sheldonlg> wrote:

I have never handled Iframes before and I don't know if this is possible.

I currently have a page with an Iframe. Inside of that Iframe is an
external web page (this is what the customer specifically wanted). This
works fine (although there is a bit of scrolling introduced due to its
capture).

Now, when a link inside that that external web page that is in the
Iframe is clicked, it takes over the whole parent page and doesn't stay
within the Iframe.

You do not give a URL to show this behaviour. Here is a URL where I do
not have this behaviour:

http://dorayme.netweaver.com.au/frames/iFrameTargetTesting.html

Do you have this behaviour with this?

Is there a way to keep it confined to the Iframe and
only have the contents of that Iframe change to the linked page?


I doubt it. In my URL you will see no monkey business with links. But if
the website you are embedding in the iframe is not your own html doc and
has something like target="_blank" for its links or perhaps something
else, I can't think immediately of any way you can control this.


It is not my own web site that is being embedded. I have no control
over those internal links. So, I guess the answer is "no".

Thanks for not bothering to answer my question. I made the above URL and
asked you a question about it - to eliminate any possible odd setting
you might have on your browser. And then we move to the next stage and I
might go on to discuss the role of target="_blank" and we can all have a
jolly good time, some of it might even be informative.

No wonder I talk to myself so often! Which reminds me yet again, yawn,
of:

I went to the doctor the other day.
"What is the matter?", asks the doctor.
"Doctor, I talk to myself"
"That's OK, plenty of people talk to themselves"
"But Doctor, I talk to myself a lot"
"It's nothing to worry about, it is not so bad ..."
"Ah! But Doctor, you don't understand how boring I am!"

--
dorayme

Reply With Quote
  #7  
Old   
sheldonlg
 
Posts: n/a

Default Re: Iframe question - 11-04-2009 , 09:32 PM



dorayme wrote:
Quote:
In article <X6WdnVF2Laa6gW_XnZ2dnUVZ_gOdnZ2d (AT) giganews (DOT) com>,
sheldonlg <sheldonlg> wrote:

dorayme wrote:
In article <ZtCdnXYoDOwwZmzXnZ2dnUVZ_t2dnZ2d (AT) giganews (DOT) com>,
sheldonlg <sheldonlg> wrote:

I have never handled Iframes before and I don't know if this is possible.

I currently have a page with an Iframe. Inside of that Iframe is an
external web page (this is what the customer specifically wanted). This
works fine (although there is a bit of scrolling introduced due to its
capture).

Now, when a link inside that that external web page that is in the
Iframe is clicked, it takes over the whole parent page and doesn't stay
within the Iframe.
You do not give a URL to show this behaviour. Here is a URL where I do
not have this behaviour:

http://dorayme.netweaver.com.au/frames/iFrameTargetTesting.html

Do you have this behaviour with this?

Is there a way to keep it confined to the Iframe and
only have the contents of that Iframe change to the linked page?

I doubt it. In my URL you will see no monkey business with links. But if
the website you are embedding in the iframe is not your own html doc and
has something like target="_blank" for its links or perhaps something
else, I can't think immediately of any way you can control this.

It is not my own web site that is being embedded. I have no control
over those internal links. So, I guess the answer is "no".


Thanks for not bothering to answer my question. I made the above URL and
asked you a question about it - to eliminate any possible odd setting
Sorry, I didn't realize that it was specially made URL and I thought it
was a URL that you already had and it didn't open up the whole page. I
also was further by distracted by what you said after that -- as that
seemed to be the answer.

So, to answer your question, yes, that is what I want to accomplish and
no, I do not have that behavior, and further no, I have no control of
the links in the destination URL.

Quote:
you might have on your browser. And then we move to the next stage and I
might go on to discuss the role of target="_blank" and we can all have a
jolly good time, some of it might even be informative.
Anyway, here is the iframe code that I _do_ have control over:

<iframe width="615" height="545" frameborder="1" scrolling="auto"
src="http://the_target_url.html" target="_self"></iframe>

What I have no control over is the the_target_url.html and its links.

I guess that they must have target="_blank" in them.

One of the links in that target url that opens the whole page is:

href="altentry.asp?action=indguest&whereto=jobs"

Reply With Quote
  #8  
Old   
rf
 
Posts: n/a

Default Re: Iframe question - 11-04-2009 , 11:09 PM



<sheldonlg> wrote

Quote:
dorayme wrote:
In article <X6WdnVF2Laa6gW_XnZ2dnUVZ_gOdnZ2d (AT) giganews (DOT) com>,
sheldonlg <sheldonlg> wrote:

dorayme wrote:
In article <ZtCdnXYoDOwwZmzXnZ2dnUVZ_t2dnZ2d (AT) giganews (DOT) com>,
sheldonlg <sheldonlg> wrote:

I have never handled Iframes before and I don't know if this is
possible.

I currently have a page with an Iframe. Inside of that Iframe is an
external web page (this is what the customer specifically wanted).
This works fine (although there is a bit of scrolling introduced due
to its capture).

Now, when a link inside that that external web page that is in the
Iframe is clicked, it takes over the whole parent page and doesn't
stay within the Iframe.
You do not give a URL to show this behaviour. Here is a URL where I do
not have this behaviour:

http://dorayme.netweaver.com.au/frames/iFrameTargetTesting.html
Do you have this behaviour with this?

Is there a way to keep it confined to the Iframe and only have the
contents of that Iframe change to the linked page?

I doubt it. In my URL you will see no monkey business with links. But
if the website you are embedding in the iframe is not your own html doc
and has something like target="_blank" for its links or perhaps
something else, I can't think immediately of any way you can control
this.

It is not my own web site that is being embedded. I have no control
over those internal links. So, I guess the answer is "no".


Thanks for not bothering to answer my question. I made the above URL and
asked you a question about it - to eliminate any possible odd setting

Sorry, I didn't realize that it was specially made URL and I thought it
was a URL that you already had and it didn't open up the whole page. I
also was further by distracted by what you said after that -- as that
seemed to be the answer.

So, to answer your question, yes, that is what I want to accomplish and
no, I do not have that behavior, and further no, I have no control of the
links in the destination URL.

you might have on your browser. And then we move to the next stage and I
might go on to discuss the role of target="_blank" and we can all have a
jolly good time, some of it might even be informative.

Anyway, here is the iframe code that I _do_ have control over:

iframe width="615" height="545" frameborder="1" scrolling="auto"
src="http://the_target_url.html" target="_self"></iframe
iframe does not have a target attribute, so this will achieve nothing.

Quote:
What I have no control over is the the_target_url.html and its links.

I guess that they must have target="_blank" in them.
Why don't you have a look and see?

Quote:
One of the links in that target url that opens the whole page is:
Oh, you did.
Quote:
href="altentry.asp?action=indguest&whereto=jobs"
That's not a link that is just an href attribute. What is the *whole* link,
the entire <a> element?

Without the actual URL to the offending page anything anybody can do us
guess.

Reply With Quote
  #9  
Old   
dorayme
 
Posts: n/a

Default Re: Iframe question - 11-05-2009 , 12:09 AM



In article <FbSdnd9XALClpG_XnZ2dnUVZ_sKdnZ2d (AT) giganews (DOT) com>,
sheldonlg <sheldonlg> wrote:

Quote:
So, to answer your question, yes, that is what I want to accomplish and
no, I do not have that behavior, and further no, I have no control of
the links in the destination URL.

OK. But since we cannot inspect the web site you are embedding, it is
hard to know what quite is making it not do what my url does.
.... It may have targets set either in its links or in a base element in
the head?

Quote:
Anyway, here is the iframe code that I _do_ have control over:

iframe width="615" height="545" frameborder="1" scrolling="auto"
src="http://the_target_url.html" target="_self"></iframe

No, no... this is just invalid.

Quote:
What I have no control over is the the_target_url.html and its links.

I guess that they must have target="_blank" in them.

Or there may be a base element with targets in the head or there may be
other things going on?

Quote:
One of the links in that target url that opens the whole page is:

href="altentry.asp?action=indguest&whereto=jobs"
Unfortunately this does not seem locatable. At least not by me.

--
dorayme

Reply With Quote
  #10  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: Iframe question - 11-05-2009 , 12:56 AM



sheldonlg wrote:

Quote:
sheldonlg <sheldonlg> wrote:
It is not my own web site that is being embedded. I have no control
over those internal links. So, I guess the answer is "no".
I'll bet most of us are wondering whose site you want to embed in yours,
and why. Who owns it? If it was my site you wanted to embed, it would
not be in your frame either.

Please explain why you want to embed someone else's site, and I'll tell
you how mine won't be in your frame.

--
-bts
-Friends don't let friends drive Windows

Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.