iframe

Will an iframe render in quirks mode?

I'm working on setting up a page and am having difficulty with getting it to look well across browsers (actually just IE, as it renders properly for mozilla and webkit). I'm wanting to rule out quirks mode before seriously considering old IE bugs fixed since IE6. The container page has a declared doctype, however the iframe code does not...

Attach a click() event to the FaceBook 'Like' button?

I'd like to do something on the page when a user clicks 'Like'. I thought something simple like the following would work: <script type="text/javascript"> $(document).ready(function () { $('.connect_widget_like_button clearfix like_button_no_like').live('click', function () { alert('clicked'); }); }...

Why does this iFrame work on one page, but not another?

I am trying to load a vimeo video into a page, but it is telling me: Given URL is not allowed by the Application configuration. but on other pages the same iframe, copied and pasted, works fine. <iframe src="http://player.vimeo.com/video/4426465" width="400" height="230" frameborder="0"></iframe> ...

When should I use HTML frames?

I have heard countless reasons on why not to use HTML frames, from their lack of accessibility, the general lacking in UX, their being completely inefficient/unmaintainable, or them just being outdated. This all brings me to two questions: Does this general consensus of hate apply to iframes as well? In what scenario(s) is it accepta...

Regarding highslide lightbox issue

Hi, I am trying to open a page with onclick as below HTML <a onclick="loadwave(44,33)" href="javascript:void(0);"> wow its working pretty</a> Javascript function loadwave(qid,wid){ url= gSitePath+'question/forum/?qid='+qid+'&wid='+wid; return hs.htmlExpand(url, { outlineType: 'rounded-white',wrapperClassName: 'draggable-head...

Jquery SlideToggle Adding whitespace to bottom of chrome document

Hi I am using jquery to slidetoggle some divs inside an iframe. In IE, Firefox it is working perfectly. The divs are sliding open and closed and i am using the following code inside the slidetoggle callback to get the height of the iframe content and then shrink it back to where it should be I am calling from within the slidetoggle c...

get the parent url of iframe in PHP

I am creating a widget that would load in a IFrame and users will be able to place the widget on their own website. How would I get the URL of the website that is using the IFrame in javascript and/or PHP? The IFrame loads a php file. I have tried "parent.top.location.href" and "parent.document.referrer" in the IFrame page but that is u...

X-FRAME-OPTIONS and Alternatives Ways to Embed Content in Firefox Addons

What I am wondering is if there is an alternative way to load and embed the content into pages using a Firefox Addon. I know I can load the content using things like io-service and scriptableinputstream to avoid the X-Frame-Options issue, but how can I then write that content into an iframe added to the DOM of the page, have it load prop...

Escaping iframe using Javascript

We have a Javascript that we use to track user behavior from widgets that are placed within a div. We would like to know the URL on which the widget is placed, but very often - our widgets are placed in an iframe, which makes this hard. Can we somehow "burst" the iframe to get the URL to the page on which the iframe is placed? Thanks...

Scaling an iframe with webkitTransform in Safari creates white border

I have a simple html page in an iframe that I am trying to scale with an html5 input range slider. it creates a white border inside the iframe, what looks to be a doubling side effect. It works perfect in chrome(6.0.472.59 mac), but not in safari (5.0.1 mac). here is a link to live demo - http://dl.dropbox.com/u/1031653/safari-bug.html...

Safari 5 HTML Iframe not working properly with URL + Params

Hi all, I have an URL in IFRAME with parameters like this: <iframe src="http://www.example.com/id=123&amp;place=123"&gt;&lt;/iframe&gt; Works perfectly on FF3+, IE6+ (believe in me) and Safari 4, but in Safari 5 is different. S5 changes the URL to http://www.example.com/id=123 &amp; place=123 Someone knows how can I do a workaround...

How to put an image (transparent) in an iframe (transparent) over Flash (not transparent)?

I have a flash game on a web site. I want to put a html element in front of it that uses some transparent gifs for one irregular border. The flash object has to be included using wmode 'window' because of performance issues with the game in the other wmodes like 'opaque'. So I can't put a html element over the flash object directly usin...

Changing iframe src with Javascript.

I am trying to change an iframe src when someone clicks a radio button. For some reason my code is not working correctly and I am having trouble figuring out why. Here is what I have: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.or...

Hide IFRAME scrollbars with javascript

I have a jQuery project where I open an iframe with scrollbars (scrolling=auto) in an overlay (boxy plugin) popup with an animation. When the overlay is closed I want the popup to tween and fade-out. So far so good, but while the size of the iframe is decreasing, the scrollbars suddenly appear before the whole thing disappears. I tried ...

Load website in iframe dialog, save open and close time, jquery

Hi, I found an example that shows how to load a website in an iframe using jquery, link My question is, is it possible to get a timestamp of the opening and closing event of dialog that displays the iframe? ...

affiliate in iframe, jquery

Hi, Does an affiliate site work when I display it in an iframe? On my website I have an ad link of a partner. I want to display it in an iframe, that is wrapped by an jquery dialog. The user should be able to use the partner site in the dialog just as a normal website and to shopping ... Is that possible? ...

Iframe background color in Google Chrome

Hi! For reference so that you know what I'm talking about: http://www.webbuddies.co.za/Pages/Portfolio.aspx In Google Chrome, the <iframe> doesn't take it's background color from the site linked in it's src attribute, but instead from the parent page's background. It works 100% perfectly in IE and FF, but how do I get it to display ri...

jQuery: get content of a modified iframe

I know similar questions have been asked before but none of the solutions worked for me so far. $(document).ready(function(){ alert($('#my_iframe').contents().html()); //displays null }); I have a thickbox that includes an iframe. The iframe contains an image uploading/cropping tool, and I need to extract the uploaded image url a...

How to remove div when iframe fully loaded with jQuery

Is there any way to wait until an iframe has fully loaded before removing a div? I'm using the following: $("#myButton").click(function(event){ $('#response').html("<img src='images/ajax-loader.gif' border=0> Please Wait - Loading!"); $("#myIFrame").attr('src', $('#url').val()); }); I'd like to remove the loading...

PDF in modal iframe renders blank in IE

EDIT 2 It appears that moving the object tag in the Dom is the cause of the problem. I added an iframe directly to the page and it works fine without any problems. However, when I move that iFrame into a modal dialogue box (http://www.ericmmartin.com/projects/simplemodal/) the PDF disappears (the object tag no longer renders correctly...