iframe

iframe based IE6 javascript memory leak?

Hi, I'm loading in content using an iframe via a menu with jquery which is updating the 'src' attribute of the iframe to then load in the desired page. Each of the pages have their own javascript includes and heavy content. The code is as follows:- $(document).ready(function() { loadPage('main.php'); }); function loadPage(url) { ...

iframe don't reload at page refresh

is there any way to div or iframe don't reload at page refresh ...

Embedding Content (iframes) with an HTML 4.01 doctype?

I have some existing code that I have been tasked with upgrading to a valid doctype of HTML4.01 strict. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; In the code I've come across an <iframe>, and this does not sit well with the w3 validator. <iframe OnLoad="javascript: LoadAddAtt...

Display Documents in an IFrame

A colleague set up an intranet application where the users can upload documents. These documents are displayed afterwards in an IFRAME using <IFRAME src="document.doc"></IFRAME> - of course this only works in IE. While this works with some users, others (including myself) do not see the document, but rather a download dialogue allowing t...

Why don't Google Group pages load in a WebKit Iframe?

In Chrome and Safari, the following loads as a blank frame. <html> <head> <title>Iframe Test</title> </head> <body> <iframe src="http://groups.google.com/group/websync"&gt;&lt;/iframe&gt; </body> </html> Yet the direct URL works fine. What gives? ...

After clicking on google CSE result link, it will open to other website. How to keep the other website opened in same iframe (my website)?

i want to keep my website user surfing other website in my website. CSE will open result link in top frame and leaving my site. so, i want to keep it in parent frame.for an example, i want myspace.com in my website in iframe. For temporary, i make the result open in new window. TQ ...

Increasing iframe height

Hi, I am loading a "html" page in to a div( ex: #targets) using jquery load().The the div comes under the iframe. After loading the html file, the div height and iframe height not getting increased based on the html file content height. How to change the iframe and div height based on the htm contents in the div. ...

How to create Iframe using AJAX (not just add Iframe block element but create iframe from 0)?

How to create Iframe using AJAX (not just add Iframe block element but create iframe from 0)? ...

Twitter OAuth via a popup

I was wondering how to do twitter OAuth via a popup, i.e. load up the Oauth page in a popup and make the callback close the child window and reload the parent window. Edit: OK iframes are bad, but how would you accomplish the above, I notice posterous.com does this - I'm looking to achieve the same flow as FB connect. ...

How can we add an iframe into the contact page in Drupal 6

In the Contact module setting, we can set some additional information that appears before the site-wide contact form. I pasted some html codes including a google map <iframe> into the textarea and saved. The iframe did not get displayed and I am sure it's filtered by Drupal during an output stage, because in phpmyadmin, I can still see...

IE not firing (window|document).onclick event when clicking on a child iFrame

I've got a simple dropdown menu that I want to hide whenever you click anywhere on the page (not on the menu). This works fine in FF and IE until you add iFrames into the page. The menu doesn't hide in IE when you click on the iFrame. Works fine in FireFox. I tried using document.onclick and window.onclick. Any ideas? Edit: I wou...

Determine if an iframe is visible on the screen

Hello! I have an iframe that is being loaded into external sites of which I cannot put any code in. What I would like to be able to determine from within my iframe (different domain) is if the iframe is currently within the 'viewport' of the browser (or if it is scrolled off the page). Is there any way for this to be done? As I do not ...

Why javascript editors use iframe to implement?

Why do they prefer using iframe and turn on design mode by .contentWindow.document.designMode = "on" instead of directly using textarea? ...

"Access is denied" JavaScript error when trying to access the document object of a programmatically-created <iframe> (IE-only)

I have project in which I need to create an <iframe> element using JavaScript and append it to the DOM. After that, I need to insert some content into the <iframe>. It's a widget that will be embedded in third-party websites. I don't set the "src" attribute of the <iframe> since I don't want to load a page; rather, it is used to isolate...

Installing flash through an iframe...getting redirected back to the outer frame?

I'm using adobe's example.swf to provide inline flash upgrades for users. However, if the example.swf is embedded in an iframe, and the user gets redirected, adobe will redirect them back to the inner iframe page, causing breakage. Is there any way for this redirect to bring the user back to the outer frame? ...

In Internet Explorer, reloading a page causes an "Access denied" JavaScript error when trying to access the document object of a dynamically created <iframe>

This is a puzzling one, but I really need to find a solution. I recently posted a question about getting an "Access denied" JavaScript error when trying to access the document object of an <iframe> that was created with JavaScript (see URL below). This was caused by the document.domain property begin set in the parent document; since th...

how do i pass a URL address from a parent to iframe when clicking on something in the parent?

Hi, I have an html page with an iframe in it. The iframe only does 1 thing which holds the longtail video player. Here is the code for the longtail video player (the iframe)... <script type='text/javascript'> var so = new SWFObject('player.swf','mpl','725','415','9'); so.addParam('allowfullscreen','true'); so.addParam('allowscrip...

putting content from iframe into current DOM

Morning all. I have the folowing problem: $(document).ready(function(){ $("#actContentToGet").load(function(){ var htmlCODE = document.getElementById('actContentToGet').contentWindow.document.body; var elements = []; var z = 1; function alterContent(htmlCODE){ $("#createdDivs").html(""); htmlCODE.$("*").each(function(){ aler...

How do I get around access denied when trying to view the parent of an IFRAME

So I have this craptastic code that I inherited and an insane client as well. This program uses IFRAMES to emulate AJAX like calls since the previous dev could not be bothered to just do AJAX. Anyway, the problem is, is that the app calls a javascript that then sets the source of the IFRAME to some dynamic javascript. Okay, now at the...

How to track the user in an iframe

I want to track what happens inside an iframe when a user clicks on links in the IFrame. The page that contains the iframe (the parent) is to track the user´s navigation through the page in the iframe. Both pages will be hosted on the same toplevel domain, although the subdomains will differ. I need the parent page to be notified of eve...