iframe

Top left borders appearing round Bar Chart in IE7 using Google Visualization API

Hi, I am having some problems with IE and googles Visualization Api. Basically an extra border (single pixel white line) is been added to the top and the left of the my chart, but only in IE. A full border is also been applied to a any labels in the graph which are truncated (cut off off slightly). A screenshot can be seen here: http:/...

document and iframe in just one selector

I am currently injecting an iframe and binding a keyevent both to the document and the iframe. Can I select both the iFrame and the document in one row? notice the iframe must have .contents() after the selector // wait for iframe to load $('iframe#iframe').load(function() { // event bind to document $(document).bind('keydown'...

Get parent page url from silverlight app in iframe

Hi I need to be able to work out what page is hosting my silverlight app. I can get the url of the iframe using System.Windows.Browser.HtmlPage.Document.DocumentUri.AbsolutePath, but I want to get the URL of the web page hosting the iframe. System.Windows.Browser.HtmlPage.Document.DocumentElement.Parent is null. Thanks! ...

Carrying out the actions of an input type button element in the parent frame

Hello I've an iFrame A which has an iFrame B inside it. In frame B i load a page which has a input type button element. It basically, when gets clicked, navigates to another page. Now i want to change the target of the button so that i loads the page in its parent iFrame A. I've tried changing currentButton.target = '_parent' But it...

onkeydown crossbrowser on IFRAME?

Hello, before to post i try to search a solution in this site and by google but with now luck. I have a issue with IE8, this code below add on the fly an IFRAME and work fine in Chrome, Firefox and IE7. The problem is the keyHandler() function that is not triggered only in IE8. What is the best solution to attach an event crossbrowser...

Jquery. Execute code only when all iframes are loaded

Hello. $(document).ready(handler) call to handler when page is loaded not paying attention to whether iframes' content is loaded or not. I want code to be executed only when content of all iframes loaded. Is there any way to achieve this? ...

Fancybox jQuery from iframe

From one page, I call fancybox to open an iframe in the fancybox. From that page, the one in the fancybox, I try to write some more jQuery code. $(document).ready(function() {}); is not called if my jQuery code is in the head tag, but if my jQuery code is written before anything, even the DOCTYPE, then it works. Why is this? Thanks ...

Selecting children of an iframe from the parent of said iframe via css

Is there a simple way to do (what any normal person would assume) this does: html{ background-color:orange; } html iframe html { background-color:orange; } without breaking my stylesheet into two? ...

IE throws an "Object required" error when trying to use the Event Object from another window/frame

I found a JavaScript error in a script that I'm developing. I whittled it down to a pair of fairly concise pages that still produce the error: http://troy.onespot.com/static/4505/index.html http://troy.onespot.com/static/4505/iframe.html If you load the first page in Internet Explorer 8 (or probably 6 or 7, for that matter), give it ...

how to set iframe src to local file

Hi everyone, I have an iframe in my HTML, where i would like to play mpeg/mpg files from local folder, but i can't load the video into the iframe. when i set src="http://www.google.com", it is displayed in the iframe, but if i try src="file:///C:/Documents%20and%20Settings/jgabotero/Desktop/sample.jpg" it doesn't display the image. How...

Resize iframe by mouse drag

I have a page that consists of two iframes where they divide the page into two parts. Is there a way to resize the division of the page using mouse drag? I would prefer a solution that does not require JQuery as we're not using it at the moment (We are using Microsoft AJAX library but I couldn't find a solution that leverages it). T...

changing the PostBackUrl in ASP.net after a file download

I have a ASP.net which allows users to select a number of inputs and dropdown lists to filter the report and to download an Excel report after pressing a button on that same form. The page can be used mulitple times, by changing the inputs and pressing the download button each time. The button should be posting back to the hidden IFRA...

how to set Iframe height, width dynamically

Hi i am using the following script to set height and width of iframe dynamically. if(window.location.hash.length != 0) { var hostUrl = window.location.hash.substring(1); hostUrl += "#"; hostUrl += 'height=' + height.toString(); hostUrl += '&'; hostUrl += 'width=' + width.toString(); windo...

jQuery how to close dialog from iframe within dialog?

If I open a dialog like so: $('<iframe id="externalSite" class="externalSite" src="http://www.example.com" />').dialog({ autoOpen: true, width: 800, height: 500, modal: true, resizable: true }) How can I close the dialog from withing the iframe? ...

Why this IFrame is not taking complete page height?

I am using Iframe to display google.com [ or say any website ]. I have used height=100% but even then my Iframe size is just half the page. Please let me know why it is happening. Here is the link: http://jsbin.com/anola3 ...

Why can't IE allow a page to login using frames (multiple domains)?

I think I may know the answer to this question but I'm actually looking for some hard evidence/link to a statement from Microsoft on why this occurs. I have a domain name of "www.mycompany.com", which is HTTP. This page soley contains HTML with an iFrame redirecting to "application.anothercompany.com", which is HTTPS. The page that sits...

why $(window['iframeName'].document.body).html() doesn't work when i change .attr('src')

Why doesn't $(window['iframeName'].document.body).html() ...work when i change .attr('src') When i set the src attribute of iframe to any url when i creating the page, this code $(window['iframeName'].document.body).html() ...will work. But when i change the src attribute by .attr('src',"www.google.com.sa") and wait to load the...

document.activeElement returns body in Chrome and Safari

On a page I have an Iframe that contains input boxes, and if I select one of those boxes in FireFox and use document.activeElement, I get the IFrame. Thats okay, I just use that IFrame and get its contentDocument, save it, then do activeElement again and now I get the input box. However, in Chrome and Safari, when I select one of the bo...

Facebook API, Canvas app in iFrame, Javascript API, Broken in IE8?

I tried to look for help in the FB forums for this, but they really are not much help there. My app is set up as an iframe app, but the same behavior happens if the app is set up as an fbml app and the page below is loaded through a fb:iframe. The same behavior exists regardless of what advanced settings are used. The same behavior ex...

iframe display the curent content website instead of the target of src

My iframe code is <iframe src=”http://google.com” width=”400″ height=”600″></iframe> But instead of showing google it show my own website! You can take a look at http://tetards.ch/node/112 ...