iframe

MS Edge - window.print() is not frame contextual in MS edge

风格不统一 提交于 2019-12-21 09:33:41
问题 Microsoft Edge is not handling window.print() consistently when compared with other browsers. In most browsers calling window.print() from within an iframe on a page will only print the contents of that iframe. However in edge it will always print the whole document. Was this intentional? Is there workaround? Example on JSFiddle. iframe.html ... <body> <a href="#" onclick="window.print()">print iframe document</a> </body> ... index.html ... <body> <a href="#" onclick="window.print()">print

YouTube iframe API: can't make it responsive

走远了吗. 提交于 2019-12-21 09:17:24
问题 I'm trying to implement a Youtube video via the iFrame API. I need to catch some events so embedding the player alone is not an option. Everything is working fine as explained in the docs, I'm calling the video like this: var tag = document.createElement('script'); tag.src = "https://www.youtube.com/iframe_api"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); var player; function onYouTubeIframeAPIReady() { if($("

Chrome error when embedding video url with iframe [duplicate]

泪湿孤枕 提交于 2019-12-21 07:07:09
问题 This question already has answers here : Google Chromecast sender error if Chromecast extension is not installed or using incognito (5 answers) Closed 4 years ago . When I embed some url into page with iframe I'm getting the following error's in chrome console. Why is this happening? GET chrome-extension://boadgeojelhgndaghljhdicfkmllpafd/cast_sender.js net::ERR_FAILEDfj @ www-embed-player-new.js:151ej @ www-embed-player-new.js:151dj @ www-embed-player-new.js:151ij @ www-embed-player-new.js

How to Get url from the iframe using PHP

心不动则不痛 提交于 2019-12-21 06:57:31
问题 How to get the youtube url from the below link? <iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/VvJ037b_kLs" frameborder="0" allowfullscreen></iframe> 回答1: You can use regex and preg_match function preg_match('/src="([^"]+)"/', $iframe_string, $match); $url = $match[1]; UPDATE if you have page generated with php or as inline html in php file, you can use buffers to get html out of php and then use regex on it: first use ob_start(); at the

Python - Showing a web browser/iframe right into the app

时光总嘲笑我的痴心妄想 提交于 2019-12-21 06:15:21
问题 I have a script which if helpful to people answering questions, is using kivy. I want to have it show a iframe kind of thing right into it when run, instead of opening the browser. For example something like this: def browser(): url = "google.com" iframe(url) browser() Obviously this wouldnt work as python is not html. Keep in mind, I am not trying to run this script on the web, but on the kivy launcher. As intended, it should not open the webbrowser but instead show the page in a box built

Putting an image as a frame around an iframe?

你离开我真会死。 提交于 2019-12-21 06:04:58
问题 I have a site I'm trying to display in a mobile format, but on a wide screen. I'm convinced the iframe is the way to go. I'm trying to load the iframe inside an image of an iPhone. You can see an example here. Once you see it, you should be able to tell what I'm trying to do. I've got this CSS down to allow for the iframe to be displayed inside the iPhones screen... /*iframe Overlay*/ #over{ position: absolute; top: 84px; left: 133px; width: 485px; height: 320px; } iframe{ width: 100%; height

Google Tag Manager dataLayer within iframes

假如想象 提交于 2019-12-21 05:46:09
问题 I'm wondering if it's possible to 'sync' the dataLayer between an iframe and it's parent page. The situation: I have a parent page with a GTM container and a hardcoded dataLayer. In that parent page I have an iframe with the same GTM container. What I want to do is read the dataLayer in the parent from the iframe, ideally through the Tag Manager (Macros). The variable can be updated from the parent page, but the iframe should only read the data. Is this possible? Google is pretty hazy about

<iframe src=“reallylongpage.html#bottom” /> doesn't work

二次信任 提交于 2019-12-21 05:45:14
问题 I have the following embedded iframe <iframe width="100%" height="400" src="reallylongpage.html" /> reallylongpage.html has 2 anchors #top and #bottom I want my iframe to load reallylongpage.html at the bottom of the page so I did <iframe width="100%" height="400" src="reallylongpage.html#bottom" /> But this has the undesirable effect of scrolling both the iframe AND the parent page. The parent page shouldn't scroll at all. This happens in Chrome and Firefox. here is an example with full code

cross-domain post iframe

谁说我不能喝 提交于 2019-12-21 05:31:21
问题 I want to POST data from my FORM to an IFRAME which is found on another domain. Is there any easy way to do this? <iframe name="iframe" width="100" height="100" src="www.otherdomain.com" /> <form action="www.mydomain.com" method="post" target="iframe"> <input type="text" name="text1" value="123" /> <input type="text" name="text2" value="456" /> <input type="submit" value="submit"/> </form> 回答1: I think your example should work. I've set two virtual hosts pastefrom.com pasteto.com on my

Facebook iFrame app - how to fetch Preload FQL result using PHP SDK?

孤街浪徒 提交于 2019-12-21 05:15:20
问题 since few years I have an FBML app (a small Flash game) which I'm now trying to convert to an iFrame app. Unfortunately there aren't many docs for Facebook iFrame apps yet. For my game I need the user's first name, picture, gender and the city. In my old version I had this preload FQL (created once by a PHP script): $fql = array('info' => array('pattern' => 'facebook', 'query' => 'SELECT first_name, sex, pic_big, current_location FROM user WHERE uid={*user*}')); $fb->api_client->admin