iframe

google analytics tracking in iframe feeding to different partners

our partners sites leverages our iframes in their own websites. I was wondering if there is a way to track the analytics on the iframes. The problem is, if we also utilize these iframes on our own website, how do i avoid duplicate tracking where a visit is counted on our domain's analytics and also counted again in iframes? is there a ...

How to apply CSS to iFrame?

Hi, I have simple page that has some iFrame sections (to display RSS links), how can I apply the same CSS format for the main page to the page displayed in the iFrame? Thanks, ...

Secure iframe on unsecure page in a different domain

Our company is looking into allowing third party sites to use our online checkout system. A client has stated that they would like to be able to use a lightbox style popup to display the checkout. And they would like this to be available on every page of the site, therefore mostly unsecure pages. Our checkout system and the client site ...

Embedded browser with iframe

I am writing a web application that will run in kiosk mode on a touch screen. I am currently only targeting it for running on Firefox 3. A few of the use cases I have need to visit external sites. I wish to do so with an embedded browser, which I'm tackling with the help of an <iframe>. I need back/forward buttons for the embedded home p...

Restricting IFRAME access in PHP

I am creating a small web page using PHP that will be accessed as an IFRAME from a couple of sites. I'm wanting to restrict access to this site to work ONLY within the "approved" sites, and not other sites or accessed directly. Does anyone have any suggestions? Is this even possible? The PHP site will be Apache, and the sites iframin...

How to auto-size an iFrame?

I'm loading an iFrame and want the parent to automatically change the height based upon the height of the iFrame's content. To simply things, all pages belong to the same domain, so I shouldn't run into cross-site scripting issues. ...

Invoking javascript in iframe from parent page

Basically, I have an iframe embedded in a page and the iframe has some javascript routines I need to invoke from the parent page. Now the opposite is quite simple as you only need to call parent.functionName() but unfortunately I need exactly the opposite of that. Please note that my problem is not changing the source url of the iframe...

Detecting clicks inside an iframe from outside?

Here is the scenario. There is content loaded in iframe from other site. I click to some link inside the iframe. Is it possible to catch somehow outside the iframe what is that link? UPDATE Since I recieved question if my intentions are pure, I would explain more on the use case. May be I started in wrong direction for this task. So,...

asp.net IFrame scroll bar push to top . . .

Heres a tricky one . . I have a webpage (called PageA) that has a header and then simply includes an iframe. Lets call the page within the iframe PageB. PageB simply has a bunch of thumbnails but there are a lot so you have to scroll down on PageA to view them all. When i scroll down to the bottom of the pageB and click on a thumbna...

Busting out of an iframe using meta-refresh or javascript?

I basically have a page which shows a "processing" screen which has been flushed to the browser. Later on I need to redirect this page, currently we use meta refresh and this normally works fine. With a new payment system, which includes 3D secure, we potentially end up within an iframe being directed back to our site from a third pa...

Iframe content depending on referring page

Is there any way to vary the initial content of an iframe depending on the referring page? For example ‘page 1’ has an iframe displaying ‘initial content 1’ when page 1’s URL is typed directly in address bar. If a link is clicked on ‘page 2’ linking to ‘page 1’ iframe content on ‘page 1’ will start as ‘initial content 2’. I hope that m...

JavaScript: closing window from iframe

I have a page P1 loading from site S1 which contains an iframe. That iframe loads a page P2 from another site S2. At some point P2 would like to close the browser window, which contains P1 loaded from S1. Of course, since P2 is loaded from another site, it can't just do parent.close(). I have full control over P1 and P2, so I can add Ja...

Is it possible to hide/close and iframe from within itself or on the server side?

Suppose I have a page that I am writing a javascript plugin for on the domain first.com. The javascript plugin injects an iframe pointing to a login page (of domain second.com) into the first.com page and displays it as a popup so that the user can login. Is there anyway for me to hide/close the iframe after the user logs in with it? ...

How to cancel a file upload using dojo.io.iframe.send?

I am using the dojo.io.iframe.send method to send a file to my server. I want to provide a way that the user can cancel the send once it is in progress, in case it is taking too long or the user realizes she sent the wrong file. I can't figure a way to do this. I could use a timeout to terminate the send if it is taking a long time (tha...

Moving ModalPopup Outside the IFrame. Possible?

I have an iframe inside my main page. There is a modalpopup inside the iframe page. So when the modalpopup is shown, the parent of the modalpopup is the iframe body and the main page parent body. Thus the overlay only covers the iframe and not the entire page. I tried moving the modalpopup from the iframe to the parent windows body elem...

A resonable request: Iframes in IE that indicate loading progress?

One thing that bugs me about IE is that when it goes to load a page with an iframe it will wait until the iframe has finished loading before it will render the page. Firefox by contrast will render all the other page elements while the iframe is loading which is really nice if the iframe takes a long time to load because it gives the us...

MOSS'07 - Page View Web Part Slows Menu Hovers

Hello everyone, In our MOSS '07 site we have a page that contains just a Page Viewer web part in it that points to a site on another server. However, I've noticed that on that page (and any others that have a Page Viewer web part on it) our drop down menus and hover effects are SUPER SLOW and completely max out the CPU on the visitor's...

Synchronization of Iframes

I have multiple iframes which are displaying same collection of data (help in asp.net Cache). After the modifies the data on one of the frames, I would like all of the others to reflect the update without the need for explicit postback on each one of them. So the question is: What is the easiest and most elegant way to keep iframes sy...

Apply margins to all but iframe

Hi all, I have a ‘page a’ using ‘css a’. This page has margins set in css. I also have a ‘page b’ using ‘css b’. This page also has margins set in css, of the same size as in ‘css a’ (10px). Is there any way I can make it so that when I am viewing ‘page a’ on its own it has margins, but when viewed in an iframe on ‘page b’ the margins ...

How to identify if a webpage is being loaded inside an iframe or directly into the browser window?

I am writing an iframe based facebook app. Now I want to use the same html page to render the normal website as well as the canvas page within facebook. I want to know if I can determine whether the page has been loaded inside the iframe or directly in the browser? ...