![]() | |
#11
| |||
| |||
|
|
Please explain why you want to embed someone else's site, and I'll tell you how mine won't be in your frame. |
#12
| |||
| |||
|
|
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. |
#13
| |||
| |||
|
|
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. |
#14
| |||
| |||
|
|
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. |
#15
| |||
| |||
|
|
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. |
#16
| |||
| |||
|
|
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'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. |
#17
| |||
| |||
|
|
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? |
#18
| |||
| |||
|
|
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). |
#19
| |||
| |||
|
|
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). |
#20
| |||
| |||
|
|
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;} |
![]() |
| Thread Tools | |
| Display Modes | |
| |