iframe

Dynamic height of iframe

I am currently working on an existing site that uses iframes(sigh!), these are pretty painful to work with and I'm having problems getting the height of the iframe to scale with the height of the HTML content. I've tried a few different script snippets that floats around on the interwebs, but none of them have worked for me. I really wa...

Getting JavaScript exception happening in iframe surface

Here is the situation: A page (iframe.html) has an iframe loading another page (iframe-content.html). An JavaScript error might happen when iframe-content.html is loaded in the iframe. I'd like that exception to be visible to the browser (e.g. shown in Firefox error console, or Firebug). Here is what I see: When iframe.html is init...

change iframe source in ie using javascript

Hi, i have used an iframe which looks like this <iframe style='width: 330px; height: 278px' scrolling='no' name="iframeId" class="advPlayer" id="iframeId" frameborder="0" src='../../player/iabpreview.php?adid=<?php echo $selectedAdIdx ?>&amp;autoPlay=true'></iframe> whenever i click a div,i have to change the source of the iframe..so ...

Resizing iframe to fit its content

I have an iframe where the src is an htm file and this iframe is put inside usercontrol : <iframe frameborder="0" src="CName.htm" align="left" width="730" height="1100" ></iframe> i need the iframe to resized according to the content so that it's height is set according to the hieght of the html file and i don't need to use scrolling ...

cross domain access in iframe from child to parent

Hi, how do we access parent document from a document loaded inside an iframe when the page loaded inside iframe is from another domain ? I am getting a permission denied error. Thanks in advance for the help. ...

How do I access JavaScript objects in a parent window from an iframe

I have a web page which contains a JavaScript variable called "myVariable". Within this web page is an iframe which points to a second web page. Both pages are within the same domain. The page within the iframe needs to access "myVariable" which is defined in the parent web page. I have successfully accessed this variable with Fir...

IE7 - meta refresh inside an HTTPS IFRAME causes mixed content warning

I have an ASP.NET application that implements keep-alive by using a hidden IFRAME with a refresh header (or meta refresh tag in the page). For many - but not all - instances of Internet Explorer (reproduced so far on IE7 and IE8 beta - but not for everyone!) if you move between two secure pages that both contain this keep-alive IFRAME, ...

Toggle iframe scrolling in javascript?

How can I toggle an iframe's scrolling between on, off and auto in javascript? I tried changing the frame.scrolling attribute to "yes", "no" and "auto", but it doesn't have any effect. ...

HTML Element's Height Property not set by Internet Explorer

I've written a Javascript script that automatically resizes the height of an IFrame, depending on its content. This is done as soon as the content of the framed page is produced; in Firefox no problem, but in IE the script is correctly executed but no effect is seen: the method is called in a callback function. Any sugestions? If I execu...

How can I manipulate text through an iframe?

I have two questions. This is core component of a project I'm currently working on. I'm looking for a way to manipulate/edit the source code of an iFrame whose "src" will always be changing: a dynamic iFrame. Is this possible? I know that it's really not recommended because of the potential security issues. And my other question is: ...

Server-side detection that a page is shown inside an IFrame

Is it possible to determine - server-side - whether a page has been loaded within an IFrame? When certain errors happen in my application the user gets redirected to Default.aspx and an error message is shown. The text of that error message gets set in session by exception handling code. The error message gets cleared from session once ...

How to write this in jquery "window.parent.document.getElementById('parentPrice').innerHTML"?

I have an iframe and I wrote this code window.parent.document.getElementById('parentPrice').innerHTML to access parent element. How to get the same result using jquery? UPDATE: Or how to access iFrame parent page using jquery? ...

Ajax and JSF 1.1 using hidden iframe with "proxy forms", what do you think about this development strategy?

Hi, currently I am using yet 1.1 specs, so I am trying to make simple what is too complex for me :p, managing backing beans with conflicting navigation rules, external params breaking rules and so on... for example when I need a backing bean used by other "views" simply I call it using FacesContext inside other backing beans, but often i...

How can I get a parent window's height from within iFrame using jQuery?

Within an iFrame, we need to get the parent's window/document height. Is there a way to get this using jQuery? I know we can use $(document).height() to get a page's height. I just can't figure out how to get the parent's value from within the iFrame. Please help! ...

open link in iframe

I have a page with a frame in it, and some links below the frame. I want the links, when clicked, to open the page in the frame. I tried <a href="" target="nameofframe">link1</a> but it didnt' work? update its an iframe. ...

AutoScroll iframe parent while dragging (Prototype & Scriptaculous)

I am having an iframe on a page. The iframe resizes itself based on the content loaded in it. So, it won't be having any scroll bars. The iframe contains a list of draggable elements (Prototype & Scriptaculous). I have to drag the elements from bottom to top or vice versa, and while dragging, the parent window should scroll accordingly....

iframe and request.referer

I am developing a web application which will entail cross scripting across domains using an iframe. Essentially web authors will be able to embed code into an iframe on their page, and the browser will retrieve content from my web application and display it in the page. It is sort of like Google Adsense. I need a way to ensure the par...

Getting the current src of an Iframe using JQuery

I need to get notified whenever a user clicks a link on a page in an iframe that is not from the same doamin. I'm aware of xss restrictions, however all i need to know is the current page being served in the Iframe. Is there a way to do this without violating xss rules? ...

Get top href and innerHTML from within an iframe

Is there any way to grab any information from the top from within an iframe on a separate domain? Somebody has tasked me with validating that their advertising is not next to things like pornography, etc... but their ads are always inside an iframe on publisher sites. Interestingly, when I put twitter.com in an iframe, they have iframe...

tabbed html application

I am writing a complex tab based web application where each tab is unrelated to each other in the sense that there is no interaction. So for ease of development i want I want each tab to be a separate html page viewable on its own and at later stage I can assemble them via tabs or may be menus or trees so question or questions are: I a...