iframe

Problem with iframe and IE6 and IE7 causing extra bottom padding

Hi all, I'm trying to insert a Google Maps iframe into my website. The iframe has a padding of 4px and a border of 1px already applied to it but for some reason in IE6 and IE7 there is an extra 3px padding added to the bottom of the iframe. You can see my test site here: http://www.prashantraju.com/test/ Is there a reason why this i...

Resize dynamic iframe (problem with Chrome)

So I've been looking around at all the other Stack Overflow posts and around google about how to set the height/width automatically on an iFrame. I've gone through about 15-20 of them and none have worked for me so far. Let me try to explain my situation: I'm dynamically setting the body of an iFrame on my page. I'm needing the iFrame t...

ScriptResource.axd Access is denied. Cross-Domain iFrame

We have a web page containing an iframe containing a page sharing an authentification cookie with it's parent page. For example the iframe page is on the domain foo.domain.com and the page containing the iframe is on foo2.domain.com. Both share a cookie from domain.com. Authentification works great, but the problem is with ASP.NET in ...

Legacy iframes, what is a full fledged replacement for them?

A site heavily using a main iframe I inherited a legacy codebase/website, http://ninjawars.net . The iframes were in place before I started coding on the site. I constantly hear about the problems of iframes (security, accessibility, layout issues), and I'm pretty certain that iframes aren't friendly for search engines (a big minus). ...

pdf in iframe in jsp on tomcat, also Struts2

Hello Everyone, I'm having some issues getting my pdf file to display in my jsp page. I have the pdf saved on my tomcat server with a file location as follows c:/tomcat 6.0/webapps/appname/reports/saved/filename.pdf I am trying to open that file (preferably not using the c: location) and displaying it in an iframe in my jsp file using ...

Sizing an IFrame for remote content (ow.ly, google image search, etc)

URL sharing via IFrames is pretty popular but as far as I can tell every company builds their own library to do the same thing. (the main page is reduced to look like a bar at the top and the iframe'd content takes over the rest of the page.) facebook and ow.ly are 2 examples as well as google's image search. Anyway. does anyone ...

How can I load a remote document into an IFRAME in Internet Explorer? (IE6, IE7, IE8)

I posted a question the other day about why IE8 would not allow me to embed a page using the OBJECT tag. Per that discussion, and per my other research, I decided to just go with an IFRAME as it was not clear that the third-party application actually needed to be in an OBJECT. Now here I am, a day later, finding out that IE8 has the sam...

iframe Onload Visibility

Hi Guys, I am trying to hide an iframe until it is loaded by I keep getting an error with the following code: jquery("some stuff">.html("<iframe frameborder='0' vspace='0' hspace='0' marginwidth='0' allowtransparency='true' scrolling='no' marginheight='0' style='visibility:hidden;' onload="this.style.visibility='visible';" width...

Can't get Google map to show up in Flatpage using Django Flatpages

I have a client with a "Directions" page in their website and they wanted to add a Google map to the page, so they went to maps and put in their location and then used the "embed" link to get the html for the iframe. They then opened up the Flatpage for "Directions" page in the admin and went to html mode in TinyMCE and then pasted in th...

@font-face in IE with modal window: once in the modal font reverts back to Helvetica

I'm using @font-face and it's working perfectly even in IE when loading the index page. However, when I open my modal window using IE it still works and then I click on a link within the modal to display a new page in the modal - it reverts to Helvetica on that page, on the previous page and even when I close the modal my index is now in...

PHP, HTTP_REFERER not working on iframe??

Okay, here is my situation. I have a page, index.php, which is the mainsite (flash site) I have another page called iframe.php which contain iframe of index.php Another page, test.php. Inside have 2 links, 1st link is directly to index.php, another link is to iframe.php I tested: I click the 1st link, when i trace/echo the HTTP_REF...

Can't get URL changed from IFRAME

Hi there, I have an IFRAME with a src that is a login, i'd like to know, in any way, if it has been logged in, so i tried to check if the URL has changed getting the .src property, and it is the same that the original. Is there a way, i know about the restrictions problems (it's not in my domain the url that i'm trying to get) to see if ...

Facebook developer: making a permission optional

Facebook requested that I change my design of my application because certain functions become deprecated. Now I have to ask the user for "publish_stream" permission when he logs in. When the user allows the permission, he is redirected to the website and everyone's happy. When he doesn't allow -> he is being requested again and again u...

How can I modify a page after a file is finished downloading to the browser?

Hello! I've got a simple C# ASP.NET app that generates an Excel file and sends it to the browser using the Response.WriteFile() function. I would like to disable the submit button once it has been clicked and display a message on the screen to wait a few minutes, since some of the files can take a while to generate. This works great, ...

how to capture all changes to the contents of a <body> element in JS

I am trying to write an extension for Google Chrome. I want to capture any keyboard input on a given page, and do something magic to it. I am able to do most of what I need with these lines: document.addEventListener("keydown", function(event) { OnKeyDown(event); }, false); document.addEventListener("keyup", function(event) { OnKeyDow...

how to display a pdf document in jsf page in iFrame

hi can any one help me in displaying pdf document in jsf page in i frame only thanks in advance Suresh ...

iFrame and Javascript to parent document.

Hi, I have an iFrame with an external website. I know about the same domain rule, so I am trying to invoke some javascript via the src to the parent. Currently I have: <iframe id="my_frame" src="http://other.com"&gt;&lt;/iframe&gt; and I change the src using javascript as follows: <iframe id="my_frame" src="javascript:document.write...

Document.domain and <iframe>s breaks the "Back" button in Internet Explorer

This is a very urgent problem and I'd be forever indebted to anyone who can lend some insight. I'm going to be deploying a widget (called the "ISM") to a third-party site. That site uses the document.domain JavaScript property to relax cross-domain restrictions (e.g., setting document.domain in "a.example.com" and "b.example.com" to bot...

Cross-Domain iframe communication

I have an iframe being created on a page, and the page's domain is being explicitly set to 'xyz.com' but the iframe's domain is defaulting to 'dev.xyz.com', which is the actual domain i'm developing for. The problem is, when I try to access that iframe via iframe.contentWindow.document, it fails due to the difference in domain. I've tr...

calling iframe function

Is there a way to call a javacript function that is inside an IFrame from the parent ? ...