Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: Iframe question

Reply
Thread Tools

Re: Iframe question

 
 
dorayme
Guest
Posts: n/a
 
      11-05-2009
In article <>,
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.

--
dorayme
 
Reply With Quote
 
 
 
 
dorayme
Guest
Posts: n/a
 
      11-05-2009
In article <>,
sheldonlg <sheldonlg> wrote:

> dorayme wrote:
> > In article <>,
> > 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
 
 
 
 
rf
Guest
Posts: n/a
 
      11-05-2009

<sheldonlg> wrote in message
news: ...
> dorayme wrote:
>> In article <>,
>> sheldonlg <sheldonlg> wrote:
>>
>>> dorayme wrote:
>>>> In article <>,
>>>> 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.

> 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?

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


Oh, you did.
>
> 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
 
dorayme
Guest
Posts: n/a
 
      11-05-2009
In article <>,
sheldonlg <sheldonlg> wrote:

> 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?

>
> 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.

> 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?

> 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
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      11-05-2009
sheldonlg wrote:

>> 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
 
Jonathan N. Little
Guest
Posts: n/a
 
      11-05-2009
Beauregard T. Shagnasty wrote:

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


Frame jacking maybe?

<http://skitzzo.com/archives/who-owns-the-content-framejacking-in-web-20.php>

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      11-05-2009
sheldonlg wrote:
> Jonathan N. Little wrote:
>> Beauregard T. Shagnasty wrote:
>>
>>> Please explain why you want to embed someone else's site, and I'll tell
>>> you how mine won't be in your frame.
>>>

>>
>> Frame jacking maybe?
>>
>> <http://skitzzo.com/archives/who-owns-the-content-framejacking-in-web-20.php>
>>

> The embedding is of a site from a sister government organization in
> Florida.
>
> You provided your example that did what I wanted. If, instead, you
> embedded www.employflorida.com, does it still stay within the bounds
> when you click one of the buttons below the picture?


Works just fine *if* you have JavaScript disabled. No mystery there, as
many of us suspected a little bit of JavaScript on
www.employflorida.com's pages:

if(top != self) {top.location.href = location.href;}

Now you have a few options:

To use the IFRAME since this an "authorized" sharing of content have
www.employflorida.com remove their frame-breaker script, or modify it to
allow your URL in top window.

Or abandon the IFRAME and use server-side scripting like PHP and CURL
and slurp and convert... Have fun! They have all kinds of JavaScript
controlling sessions so this may not be a very easy or elegant route.

--
Take care,

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

Thread Tools

Posting 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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
form have 2 iframe.problem to input text in other iframe elca Python 0 10-21-2009 10:00 AM
how to use an iframe as a link (make the whole iframe clickable) mi HTML 4 05-21-2008 10:13 PM
Targeting a parent iframe from a sub-iframe albanitus@yahoo.com HTML 0 11-15-2006 04:40 PM
IFRAME - Refresh Table on Parent Window - maintain IFRAME State Scott ASP General 6 04-14-2004 05:48 AM
Get form values from iframe (1) to iframe (2) inside a layer in iframe (1) Daedalous Javascript 3 01-16-2004 11:08 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57