iframe

Offset issues with jQuery Draggable into an iFrame based Sortable

梦想与她 提交于 2019-12-20 03:55:10
问题 I'm having quite a bit of trouble resolving problems with offsets related to draggable elements being dropped into a sortable area within an iFrame. The following leaned-down example to demonstrates the problem here. Make sure to keep your window fairly narrow, as otherwise it's very difficult to drop the elements into the iFrame at all. It should be pretty obvious that you cannot drag the item and drop it in the designated place, instead you must drag about 350 pixels to the right of the

On IE 10+, will document.referrer be blank when read inside an iFrame?

孤人 提交于 2019-12-20 03:52:55
问题 On all other recent browsers, reading document.referrer from an app which runs inside an iframe would return the URL of the parent site. On IE 11, however, it seems to be returning an empty string. I want to confirm whether this is the expected behaviour on IE 10+, but googling hasn't turned up much about this particular scenario. MS's documentation is a bit vague: This property returns a value only when the user reaches the current document through a link from the previous document.

What is the best way to embed Youtube videos? [closed]

馋奶兔 提交于 2019-12-20 03:38:07
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'm building a video website and I want my users to be able to upload or embed videos from Youtube. The Youtube API doesn't seem to

Capture screenshot of iframe - html2canvas not working

做~自己de王妃 提交于 2019-12-20 03:27:15
问题 I have the following iframe: <iframe name="content" src="" style="position: absolute; left: 0px; top: 28px;" allowtransparency="true" border="0" scrolling="yes" width="100%" frameborder="0" height="90%" id="MyFrame"></iframe> I simply want to capture a screenshot of the iframe contents as they stand, I've tried html2canvas but it doesn't seem to work. I've tried placing the iframe inside a div but no joy. I've seen various methods of achieving this using php, but nothing that seems clear. Can

Insert a Script into a iFrame's Header, without clearing out the body of the iFrame

送分小仙女□ 提交于 2019-12-20 03:03:47
问题 I'm looking to add a script to an iFrame's header while not losing everything contained in the iFrame's body or header... here is what I have right now which does update the iFrame with the new script, but it cleans everything in the iframe out, not appends which is what I'd like. thxs! B // Find the iFrame var iframe = document.getElementById('hi-world'); // create a string to use as a new document object var val = '<scr' + 'ipt type="text/javascript" src="http://jqueryjs.googlecode.com

IE Z-Index issues

半世苍凉 提交于 2019-12-20 02:58:16
问题 I am having the classic problem, my header navigation bar is going under my iframe in the body, but my attempt at solving this with z-indexes has just left me more confused and still with the same problem :/ Here is my setup: <header style="z-index:2;"> ....code.... <nav align="center" style="z-index:2;"> ....nav.... </nav> </header> <section id="content" style="z-index:-1;"> <div class="block"> <div class="main"> <!--[if IE]> <div style="z-index:-2;"> <iframe width="900" height="900" style=

Can I change or control the color of the IFRAME area before the content loads? [duplicate]

北慕城南 提交于 2019-12-20 02:58:09
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: fb like button creates a white background on page onload in all ie versions I have a site where portions of the content are loaded into IFrames. The problem I'm having is that the inside content of the iFrame is white until the page itself loads, and the content has a different background color (blue, in this case). So I have these white squares on the screen until the contents load. Is there any way to specify

Wrong content when refresh a page contains iframes in IE

邮差的信 提交于 2019-12-20 02:54:28
问题 In a test page 'index.html' whose content: Test link <h2 id="at"></h2> <div id="a"></div> <h2 id="bt"></h2> <div id="b"></div> <h2 id="ct"></h2> <div id="c"></div> <h2 id="dt"></h2> <div id="d"></div> <script> var wraps = [document.getElementById('a'), document.getElementById('b'), document.getElementById('c'), document.getElementById('d')], titles = [document.getElementById('at'), document.getElementById('bt'), document.getElementById('ct'), document.getElementById('dt')], arr = ['a', 'b',

create previous next button for iframe pages

徘徊边缘 提交于 2019-12-20 02:52:42
问题 This topic may have lots of code out there, BUT I seem to be looking for a variation that isn't based on history, is it possible... So I have this code... <script type="text/javascript"> var pages=new Array(); pages[0]="listItem1.html"; pages[1]="listItem2.html"; pages[2]="listItem3.html"; pages[3]="listItem4.html"; pages[4]="listItem5.html"; var i=0; var end=pages.length; end--; function changeSrc(operation) { if (operation=="next") { if (i==end) { document.getElementById('the_iframe').src

Take a screenshot of an iFrame

岁酱吖の 提交于 2019-12-20 02:47:11
问题 I am looking for a simple way to take a screenshot of an iFrame in my ASP page. I just couldn't achieve it with C# and I lack of knowledge of Javascript! Does anyone out there know the simple and best way to achieve this? What I am trying to do is, I am building a website that students can log in to e-government website in my country and prove if they are continuing student with a single click so that they can get discount from our service. Edit: The puzzle should be solved in local. 回答1: