iframe

Javascript Multiple File Upload, Sequentially One at a Time

We have a form with five <input type="file"/> elements that is in production and working great. We get request timeouts and MaxRequestLength exceeded errors on occasion. To prevent these errors, I planned to write some Javascript to upload the files one-at-a-time instead of all at once. Here is how I planned on doing this... On docu...

Iframe Facebook application and cookies [Internet Explorer]

I have downloaded the IBM P3P editor, created files and uploaded them to my server. And cookies are still not recognized in Internet Explorer. I've checked the P3P validation tool and it seems to validate. The application can be viewed here: apps.facebook.com/naplesnews and the iframe points to www.naplesnews.com/facebook/app/. Again w...

Howto Prevent IFraming w/ Whitelist

I'm creating some IFrameable content. We want the user to be able to IFrame this page, but only from a set list of domains. Is there anything that we can check to see what the domain name of the parent page is? if (top != self) { top.location.replace(self.location.href); } ...

How can I get a session timeout page to bubble up out of an iframe?

I've got a web app in asp.net that uses an Infragistics control for making tabs. Each tab is an iframe, which is nice because only the current tab's page is rendered instead of rendering all of the tabs. However, when a page times out within one of the iframes, only that iframe redirects to the login page instead of the whole window. Is...

post data to iframe on javascript load for widget

I have a little widget which has quite a few customizable options. The widget is currently retrieved by a combination of javascript creating an iframe, and the iframe contains a bunch of javascript and jquery to build the page. I can't add the complexity of conflicting javascript to the embed page, that is why i build an iframe, and ru...

Iframe hiding/loading makes it invisible in IE6 (yui library)

I don't know if this is just IE IFrame bug or it is something related to yui, I think that it happens when you load something into IE6 iframe while it is invisible (it needs to be hidden) - the content becomes invisible, even though it takes space. Here is the example To see the problem just load the page in IE6, click "New Tab" button...

Problem embedding google map with route

I got iframe with googlemap containing static location of company headquoter, i used for this google generator, and all that works fine. I got also to make possible creating routes from any location to that destinantion which is headquoter, so i picked random location, again generated iframe for this map. Everything worked fine when i ...

Does anyone know how to generate on the fly page that contain iframe of specific site That his address appears after the main site address ?

Does anyone know how to generate on the fly page that contain iframe of specific site That his address appears after the main site address ? SAMPLE http://news.fresh.co.il/shownews.php?link=http%3A//www.cnn.com ...

how to get scrollTop of an iframe

jQuery's scrollTop returns null when window is an iframe. Has anyone been able to figure out how to get scrollTop of an iframe? more info: my script is running in the iframe itself, the parent window is on another domain, so i cant access the ID of the iframe or anything like that ...

jquery getscript for iframe object

Hi, I've got a dynamically created iframe that I'm trying to add a script to. For example: var iframe = document.createElement("iframe"); I'd like to inject javascript into this iframe. I've got this working without using jquery by creating a script element under the iframe object and adding callbacks to this script object via the read...

iFrame in jQuery UI dialog causes horizontal scrollbar on parent

I'm using the jQuery UI dialog to present content in a new iFrame. Everything works out great except that the parent window of the dialog is getting a horizontal scrollbar while the dialog is displayed (IE8). I've tracked down the problem to the <html> element within the iFrame being interpreted as very wide by the browser, even though...

How do I set the appropriate content-type for cross domain calls using iFrame with JSON

Hello All I am trying to implement cross domain postback using iFrames and I suspect the content-type is getting skewered along the wire. This is a WCF service (which works fine) that I have tested with a normal async post and the request (in Fiddler) looked something like this POST /RestHostService/Service.svc/?format=json HTTP/1.1 U...

Can I change a value in parent page's JS from iframe's JS?

I have a page with 3 iframes and this page loads a JS file that has var stayFifty = new Boolean(false); and a function that changes what it does based on this boolean. In an iframe on this page I have an onclick function defined as toggleFifty = function() { parent.stayFifty = new Boolean(!(stayFifty.valueOf())); }; added to a...

IFrame with wrong URL - parent page displayes error in IE - how to solve?

I have the following html in a page: <div> <iframe src="http://google.co.in" style="width:200px;height:200px"> </iframe> <iframe src="http://" style="width:200px;height:200px"> </iframe> </div> This page displays correctly in Firefox: But in IE (7 & 8), the whole page gets replace...

Changing parent window's URL from IFrame

I have a situation where I have web apps on two different servers, where App1 contains App2 in an IFrame. Any links in App2 can have target="_parent" attribute, which allow those links to open in the top window. However, I can't find any way to get the same behavior in Javascript. I found this page, which claims that the child frame c...

How to refresh iframe parent page after a submit in the iframe?

i have iframe inside a page, and this iframe contain a submit button which will do some function. What i want is: after the iframe submit finish, call the parent page to refresh. i know how to refresh it: parent.location.reload(); But i don't know how to do that after submit finish. ...

What optimizations does a browser perform when a DOM element is being rendered off screen?

I control an iframe being rendered on another domain. Is there a clear way of telling whether this iframe is being rendered above or below the fold on the parent page? Obviously, I can't access the parent DOM because of the same origin policy restriction. For example, I tried measuring the speed of rendering on a canvas or VML tag, hopi...

Convert HTML Block to String in Javascript (output from uEditor)

Hey all, I've been having trouble getting the value from a WYSIWYG editor passed to my ajax controller, and I'm wondering if I'm doing something wrong. The WYSIWYG I'm using is uEditor (http://www.upian.com/upiansource/ueditor/en), and since I couldn't seem to directly get the value, I decided to use jQuery to search and find the value,...

How to make HTML IFrames talk to each other?

How to make HTML IFrames talk to each other? So I have 2 Iframes I know and create thare contents. I need to make tham talk one to other - for example one to send XML data to other or just call JS function from it. ...

How can I check whether I'm in the topmost frame?

I have a function in JavaScript which is included in the main HTML document and all embedded iframes. The function should operate in the main document. So I tried: function f() { if (parent === null) { ...do the real work here... } else { parent.f(); // Call parent } } That doesn't work. Apparently, parent ...