iframe

IFrame with source set to result of HTTP handler fails to load on IE

This may be a security issue... I have an IFrame on my page w/ an .ashx src. The handler does something like context.Response.ContentType = "text/html"; context.Response.Write(@"hello world"); If I navigate to the handler directly in a new browser window I see the "hello world" If I try to open the handler in the IFrame it fails on ...

xHTML 1.0 strict - Validate iFrames

Is it possible to validate iFrames in xhtml 1.0 strict? Preferably without any use of javascript to inject the iframe into the page. I know there is no point in validating just for the sake of validation, but lets just say that I like the green validation message on w3c ;) (I am forced by factors beyond my control to use iframes) Or ma...

Changing visibility does not immediately hide iFrame

Hi, I have a page that on a certain action makes an iframe visible and fills the iframe with some HTML (say for example a multi-select box and an ok button). The OK button on the iframe has the onClick method defined kinda like this: onClick="parent.hideIFrame();parent.processMultiSelectBox();" When User clicks OK on the iframe (pre...

iframe/script attack to website

I faced a website attack problem that some malicious javascript code added to all pages in my webiste. Recently I faced another problem that my website is attacked with the following "iframe" tag. iframe src="http://shopmovielife.cn:8080/index.php" width=127 height=167 style="visibility: hidden" Even if I remove this tag, the index ...

Adjust iframe height with tabbed content

A request for those that require iframes that dynamically adjust in height... For example, assume an iframe that displays a page containing tabbed content. One tab may contain content that is larger than the next tab. When switching tabs, do we therefore need to add an event listener within the content page or some function that will res...

Write elements into a child iframe using Javascript or jQuery

I have something like this: <html> <body> <iframe id="someFrame"></iframe> </body> </html> And I would like to use jQuery to write elements such that the full equivalent HTML would be like this: <html> <body> <iframe id="someFrame"> <!-- inside the iframe's content --> <!-- <html><body> --> <div>A</d...

How to get IFRAME to listen to same events as parent (and fire the same handlers)

I've got an HTML page (the parent) with an embedded IFRAME. The parent page has a couple of event listeners for mouse and keyboard events, as shown below (I'm using the Prototype library). var IdleMonitor = Class.create({ active: null, initialize: function(ii) { Element.observe(window, "mousemove", this.sendActiveSigna...

Why can't an iframe set its parent's location.hash?

I have a window containing an iframe, containing an iframe, like so: +---------------+ | Top | | +-----------+ | | | Middle | | | | +-------+ | | | | | Inner | | | | | +-------+ | | | +-----------+ | +---------------+ Top and Middle are on the same domain, but Inner is on a different domain. I need Inner to communicate w...

IE, P3P, IFrame and blocked cookies (works until page host page has personal information requested)

My company has a little widget that plugs into shopping carts. We are running into a problem where setting cookies in IE7 is not working. This is happening because we are a 3rd party because we are embedded into the site via an iframe. I have seen several post that say the way to solve this problem is by putting a P3P compact policy i...

IE6 iframe rendering issue

Hi, we have an issue with IE6 with a page inside an iframe. When a submit button is pressed, the page reloads with some new text on it but the old text from the previous page is still visible. In some places this overlaps so that the text is unreadable. Minimizing and maximizing the page cleans this up and view source only shows the ...

Target an iframe with a HTML Post with Jquery

Hi, If I'm using JQuery or javascript to do a post, how can I make it target an iframe rather than the current page? jQuery.post( url, [data], [callback], [type] ) That is the format of the jquery post, it doesn't seem as though there is anywhere to specify the target like there is in the tag. Any ideas? Thanks, Matt ...

How can I pass information to an iframe via Post in ASP.NET?

Hi, I would like to pass information to an iframe via post. (Could be jquery or javascript that executes the post, it doesn't really matter). The information cannot be sent via querystring as I do not have access to change the way the page brought in by the iframe is. This data will determine the layout of the content in the iframe so...

How to insert my web page into an iframe?

Hi, I have a web page that I am hosting for a client. The page has the client's header and footer on it and our content (a flash app) placed in the middle. The client now wants to provide us with an html page that contains their header, footer and some ads all in one document. They want us to include this document as an iframe and then...

Iframe with jquery

Hi Everybody, Is it possible to change iframe scrolling attribute with jquery ? I need to change iframe css as well. When the root document load completed i'm changing the src attribute of iframe and then i'm attaching to iframe load event with jquery this part work with successfully. After that i'm trying to change some attributes ...

iFrames and Law

Suppose an actor A has the site of an actor B in iFrames. There is no difference in the sites except the url. Urls are totally different. Should the actor A ask a permission of the actor B for using B's site? Is there any law that forbid placing other site on a site in iFrames? ...

When trying to integrate one website with another what is the way to go? Iframe or pulling content?

hi, My company has multiple vendors that all have their own websites. I am creating a website that acts as a dashboard where customers can access all of the vendor's sites. I wanted to know what is the best option for doing this? Here's what I have so far: Iframe Can bring in the entire website Seems secure enough (not sure if I'm ...

Access variables in a iFrame, or Vice Versa

I have a html page with an iFrame, from which i want to read a few variable. Its basically a map, from which i want to retrieve the Latitude and Longitude values. I've been working on Adobe AIR, and I've tried retrieving values from innerHTML, contentWindow, but still been unable to get this working. Any good ways to get this done? ...

POST'ing to a server for the contents of an <iframe>

(First posting, so please be merciful if I'm off on some of the etiquette, markup, etc. :)) Server-side: iframe-contents.php: <?PHP if($_POST['test-post-parameter'] == 'test-post-value'){ echo 'test-post-parameter successfully detected as "test-post-value".'; } else { echo 'test-post-parameter either absent or of a different value t...

Lightbox with IFrame is flickering when clicking on links...

Hi all, I've got the same problem with this post: http://stackoverflow.com/questions/877449/how-to-fix-flickering-in-iframes Unfortunately, there's no solution (and I'm afraid of negative ratings too :) ). I can't provide a page where you can see the behaviour (as it's intranet) - but I'll try to explain it: When I open an external p...

Accessing iframe using Adobe AIR

Hi Dude! Can you send me the code you used to get this right? Because I tried and I am not getting it to work. Thanks in advance! ...