HighDots Forums  

Iframe question

alt.html alt.html


Discuss Iframe question in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: Iframe question - 11-05-2009 , 01:48 AM






Beauregard T. Shagnasty wrote:

Quote:
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
  #12  
Old   
Sherm Pendley
 
Posts: n/a

Default Re: Iframe question - 11-05-2009 , 03:42 AM






sheldonlg <sheldonlg> writes:

Quote:
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.
Sounds like the links in the framed page are using target as well - quite
possibly because the page authors don't want it to be framed, and are
taking steps to make it difficult!

As far as I know, there's nothing you can do to override that.

sherm--

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

Default Re: Iframe question - 11-05-2009 , 12:47 PM



dorayme wrote:
Quote:
In article <FbSdnd9XALClpG_XnZ2dnUVZ_sKdnZ2d (AT) giganews (DOT) com>,
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"
If it does,
Unfortunately this does not seem locatable. At least not by me.

Site is for the job people at the unemployment office in Florida. The
site that we developed has one place where they want to capture another
Florida (sister) government site inside of it. The captured site is
employflorida.com.

I can't give you URL because to get at this page page you have had to
fill out an application (on-line) and then be accepted by the career
counselor. I will, however, construct the same thing in a test area in
a URL that I will put up in a followup post.

One of the full link in that page (and one that burst out of the iframe)
is either of the two button on that site under the picture (you can get
to www.employflorida.com).

I added the target="_self" into the iframe because of something I read
via Google. The problem was there without that statement.

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

Default Re: Iframe question - 11-05-2009 , 12:49 PM



Jonathan N. Little wrote:
Quote:
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?

Reply With Quote
  #15  
Old   
Neredbojias
 
Posts: n/a

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



On 04 Nov 2009, 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. 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.
After reading the above and all the replies to minute, let me say this
about them.

Perhaps all you have to do is remove the target attribute and validate
the page.

It's pretty easy to prevent pages from being framed by external
websites. If the framed-page author has taken any such steps, you're
out of luck.

--
Neredbojias
http://www.neredbojias.org/
http://www.neredbojias.net/

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

Default Re: Iframe question - 11-05-2009 , 01:22 PM



Neredbojias wrote:
Quote:
On 04 Nov 2009, 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. 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.

After reading the above and all the replies to minute, let me say this
about them.

Perhaps all you have to do is remove the target attribute and validate
the page.
It happened even without that target attribute.

Quote:
It's pretty easy to prevent pages from being framed by external
websites. If the framed-page author has taken any such steps, you're
out of luck.
That seems to be the consensus (even if he did it inadvertantly).

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

Default Re: Iframe question - 11-05-2009 , 03:19 PM



sheldonlg wrote:
Quote:
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
  #18  
Old   
BootNic
 
Posts: n/a

Default Re: Iframe question - 11-05-2009 , 05:30 PM



On Thu, 05 Nov 2009 13:22:51 -0500
sheldonlg <sheldonlg> wrote:

Quote:
Neredbojias wrote:
On 04 Nov 2009, 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. 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.

After reading the above and all the replies to minute, let me
say this about them.

Perhaps all you have to do is remove the target attribute and
validate the page.

It happened even without that target attribute.


It's pretty easy to prevent pages from being framed by
external websites. If the framed-page author has taken any such
steps, you're out of luck.

That seems to be the consensus (even if he did it
inadvertantly).
The page that loads has a frame busting script:

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




--
BootNic Thu Nov 5, 2009 05:30 pm
The human mind treats a new idea the same way the body treats a
strange protein; it rejects it.
*P. B. Medawar*

⁕ 249 days remaining

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)

iEYEARECAAYFAkrzUiEACgkQmo2774GZ7qlEZQCgp7XtnLU3Fi m6YuHydqg5GshL
jmAAnAphk1lVxPN7dwt7+CHX9hZsOWFy
=s961
-----END PGP SIGNATURE-----

Reply With Quote
  #19  
Old   
AT
 
Posts: n/a

Default Re: Iframe question - 11-05-2009 , 05:43 PM



On Thu, 05 Nov 2009 13:22:51 -0500, sheldonlg <sheldonlg> wrote:

Quote:
Neredbojias wrote:
On 04 Nov 2009, 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. 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.

After reading the above and all the replies to minute, let me say this
about them.

Perhaps all you have to do is remove the target attribute and validate
the page.

It happened even without that target attribute.


It's pretty easy to prevent pages from being framed by external
websites. If the framed-page author has taken any such steps, you're
out of luck.

That seems to be the consensus (even if he did it inadvertantly).
It's not possible to do it *inadvertantly* .....
.... -> http://www.cryer.co.uk/resources/javascript/script1.htm

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

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



BootNic wrote:
Quote:
On Thu, 05 Nov 2009 13:22:51 -0500
sheldonlg <sheldonlg> wrote:

Neredbojias wrote:
On 04 Nov 2009, 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. 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.
After reading the above and all the replies to minute, let me
say this about them.

Perhaps all you have to do is remove the target attribute and
validate the page.
It happened even without that target attribute.

It's pretty easy to prevent pages from being framed by
external websites. If the framed-page author has taken any such
steps, you're out of luck.
That seems to be the consensus (even if he did it
inadvertantly).

The page that loads has a frame busting script:

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





Thanks everyone who helped me here. I'll pass this information to the
client and let him handle it from there.

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.