iframe

How do print specific content inside the iframe

。_饼干妹妹 提交于 2019-12-23 16:42:12
问题 <script type="text/javascript"> function printDoc() { document.getElementById("frame_singleCheque").contentWindow.print(); } </script> <iframe style ="height:400px; width: 750px; overflow:scroll;" id="frame_singleCheque" src="http://www.w3schools.com"></iframe> <input type="button" id = "btnCPrint" value = "Print" onclick="javascript:printDoc()" /> Error [16:41:44.054] Error: Permission denied to access property 'print' @ http://localhost/pdf/print.php:3 i have verified with lot of stack

prevent iframe from changing parent location

ぐ巨炮叔叔 提交于 2019-12-23 16:02:06
问题 Suppose http://a.com/foo contains <iframe src="http://b.com/bar"> Sometimes b.com/bar will break out of its frame: the top-level window will redirect away from a.com/foo into b.com/bar. I don't know how b.com is doing this. I thought it wasn't possible for a cross-domain iframe to interfere with the parent unless the parent cooperates via postMessage. Is changing the window location exempt from this? If that is what's happening, how can a.com prevent this redirect? I control a.com but cannot

Iframe hover not working in IE (all versions)

倾然丶 夕夏残阳落幕 提交于 2019-12-23 15:44:34
问题 I have problem with iframe:hover. My iframe is hidden, and when I onmouse on link or iframe, then the iframe is visible. This works fine in every browser except IE (all versions). I've tried many solutions, but it still doesn't work. link with live example of my problem - element "MedicalTourism Rewievs" right from contact form. Have you any idea? EDIT: JSFiddle example <div id="wbw"> <a class="wh"></a> <div id="ta_widget_box"></div> <script language="Javascript" src="http://reviews

Refresh div on parent page from iframe using jquery

不羁岁月 提交于 2019-12-23 15:44:17
问题 I'm using fancybox's modal box with an iFrame. On form success from the iFrame I'm using the code below: <script type="text/javascript"> window.setTimeout('window.top.location.href = "/page.asp"; ',999); </script> <script language="javascript"> <!-- setTimeout("parent.$.fancybox.close();",1000) //--> </script> This closes fancybox's modal box and refreshes the parent page. I want to target a div to refresh on the parent page from the iFrame using Jquery. I want the target DIV on the parent

Iframe hover not working in IE (all versions)

本秂侑毒 提交于 2019-12-23 15:42:07
问题 I have problem with iframe:hover. My iframe is hidden, and when I onmouse on link or iframe, then the iframe is visible. This works fine in every browser except IE (all versions). I've tried many solutions, but it still doesn't work. link with live example of my problem - element "MedicalTourism Rewievs" right from contact form. Have you any idea? EDIT: JSFiddle example <div id="wbw"> <a class="wh"></a> <div id="ta_widget_box"></div> <script language="Javascript" src="http://reviews

how to set iframe src to local file

泪湿孤枕 提交于 2019-12-23 15:27:18
问题 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 can i set the src property of iframe to point to local files, specially the ones stored in IsolatedStorage? Thank you in advance. -- julie 回答1: i think you can't display

Links to external site in canvas tab on facebook page show up within canvas instead of redirecting to new page

眉间皱痕 提交于 2019-12-23 15:23:45
问题 I'm on a bit of a deadline and I'm having a problem with the canvas app I designed as a tab on my facebook page. Using Dreamweaver to create the canvas I have set pictures that link to external websites. Unfortunately, when you click on the linking pictures, the websites are loaded within the canvas area on facebook. I would like them to redirect the entire page to the website link. Forgive me if this is a ridiculous question, I'm rather new at this whole thing. UPDATE Okay, figured it out.

Force fixed nav bar on top of iframe?

天涯浪子 提交于 2019-12-23 15:03:31
问题 I have navigation fixed to the top of my page, but if an iframe-embedded youtube video is scrolled over it, it shows up on top of the nav (as well as any overlay or modal window-div). Tried setting the z-index on it, to no avail. I've found that you can set wmode="opaque" on the embed object to get this to work with an old style flash embed, but I'd prefer to work with HTML 5 and not have to require specific settings on a video embed http://jsfiddle.net/EB6gN/9/ 回答1: The correct answer is to

how to load external source to iframe instead of download?

↘锁芯ラ 提交于 2019-12-23 13:14:30
问题 I have an iframe where i try to put a link in the src. the src is to a html file that is normally being downloaded from the server to the file system, but i now want to show it in the iframe instead. is there a way to force an iframe to load whatever it gets in the src instead of downloading it?? edit: i'm using jquery, $('#webinfo').attr( "src", path); where webinfo is my iframe. when I load this it puts the html file the path is pointing at in my download folder instead of displaying it in

Internet Explorer: Can't Access IFrame Contents Unless Status Code is 200

限于喜欢 提交于 2019-12-23 12:56:12
问题 Because IE doesn't support Asynchronous file uploads, I'm using a work-around that involves posting a form to an iframe. I bind the the onLoad event of the iframe and read its contents when the event is fired. This works well, except when the server returns a status code other than 200, in which case IE8/IE9 throws a "SCRIPT5: Access is denied" error. It seems Microsoft have decided that no one should be allowed to read the contents of an iframe unless the request returns 200 OK. Googling has