After opening an iframe, I sometimes need to close it. Thus far, I just remove the iframe from its parent node, thus cutting it off from the DOM. However, I'm finding that this doesn't immediately end the iframe's life, and its javascript code can still call back into the parent window, which no longer expects these callbacks.
How can...
My code is in an iframe from a different domain, and I want to trigger a page refresh on the parent after changing the fragment of the URL (also of the parent).
It happens on IE, but not on Firefox. Is there any way of doing it without changing the outer document (polling e.g.)?
<a href="http://top.domain.com/#fragment" target="_top">c...
i have a domain full-ops.com
that i transferred to another host, but it takes 5days to transfer it.
So what i want to do on my old host is make an iframe that loads in the site from the new host. so that the user can type in full-ops.com and go to the new site.
but is it possible through javascript or any other thing to have the correc...
In certain conditions, I have a web page that gets opened in an iframe. When it's loaded into that iframe, I need it to set the window location to a resource to download a file (all of this in an attempt to make an update for a GreaseMonkey script... all legit, btw). Unfortunately, when I do:
top.location.href = "http://userscripts.org/...
I'm trying to print iframe content.
contentWindow.focus();
contentWindow.print();
This code works in IE, Firefox and Safari. But don't work in Chrome and Opera. These browsers print entire page.
I tried to use this topic http://stackoverflow.com/questions/472951/how-do-i-print-an-iframe-from-javascript-in-safari-chrome. But it didn't...
Hi i have the following
<script type="text/javascript">
$(document).ready(function () {
$("#uploadSubmit").bind("click", function () {
//edit below to suit
var src = "uploader.php";
//end
var results = '<iframe src="' + src + '" name="uploader" id="uploaderIframe"></iframe>';
...
So I automatically resize my iframe based on content height as follows:
<iframe name="main" id="main" src="main.php" frameborder=0 scrolling="no" onload="this.style.height = main.document.body.scrollHeight + 5; this.style.width = main.document.body.scrollWidth">
However, I also use a link to change the src (utilizing target if anyone...
If I write some JavaScript that runs in an <iframe> (which is dynamically created and added to the DOM with JavaScript, if that matters), is it isolated from the global namespace of its parent page, or are conflicts still possible?
I did some Googling and came across this page, but I can't really make sense of what he's doing here, or i...
when loading http://www.dmoz.org/ via iframe.
when you click on any of the links, it will escape out of the iframe.
how to disable this from happening ?
...
Hi, I'm trying to use jquery ui resizable with iframe.
It simply does not work, I don't see any handles at all. However the class ui-resizable is added.
Sample:
http://jsbin.com/uyolu
Is this normal? How do I fix? Thanks.
...
How can I attach a click event handler to an element inside an iframe.
Here's what I tried and doesn't work:
$("#parent iframe").contents().find("a").live("click", function () {
alert ("test");
return false;
});
Thanks.
Edit: the iframe is on the same domain.
...
Hi,
Is it possible to scroll the iframe window from the parent window using keys or javascript? The iframe content is from another domain different from the parent window.
KM
...
I have a jQuery dialog whose content is defined by an iframe. Until the dialog is displayed, the content of this iframe is invisible. In IE, this content and its associated javascript is executing, so that when the dialog is displayed, it is evident that the javascript has already completed all its loading work. But in non-IE browsers...
Hello. How can I load a PHP file into a flash movie ? I need an iframe in Flash or something...
Can anybody post some examples ?
Thank you.
...
Hi,
I have a parent.html, inside it, there was a iframe. When user tigger anchor link A or B, the iframe will load either childA.html or childB.html
And inside childB.html, there was a anchor link to grandchildren.html.
Currently my problem is, whenever I click the link at grandchildren.html to return to parent.html, iframe is showin...
I have a page with an iframe. Inside that iframe I have a javascript function like this:
function putme() {}
How can I call this function on the main page?
...
After searching a lot over the internet I finally decided to post this question.
I am using THICKBOX jquery tabs.When any of the tab is clicked I want to pass the URL.IDNUMBER to the iframe which on tab pages .
I was able to send the IDNUMBER and display it in a text box by simply using jquery on the main page
$("#mytest").val('IDNUMB...
My goal is to dynamically create an iframe and write ad JavaScript into it using jQuery (e.g. Google AdSense script). My code works on Chrome, but fails intermittently in Firefox i.e. sometimes the ad script runs and renders the ad, and other times it doesn't. When it doesn't work, the script code itself shows up in the iframe.
My guess...
Hi guys,
I have a iframe in which i have a ajax control Toolkit tabcontainer control and i am using a javascript to re size the iframe to fit its contents....
the script works fine in all browsers whenever the page reloads but when i change an active tab of the tabcontainer it goes haywire in Chrome only and calculates a height which i...
I'm wondering if you can have Greasemonkey execute against an iframe only and not it's parent window. The parent window is domain A, the iframe is domain B, and the include in the script would be @include http://domain-B.com/path/*.
I don't need any interaction with the parent. I've tried this a couple of times without success. Is there...