iframe

Facebook iFrame app - getting rid of vertical scrollbars?

瘦欲@ 提交于 2019-12-24 03:39:25
问题 I've converted a Facebook app from FBML to iFrame (with PHP SDK) and now have vertical scrollbars displayed for the same amount of content I had before (a logo, a flash game and a line with 3 links below). But earlier I didn't have any scrollbars. If I set the app setting Auto-Resize, then the lower part of content isn't displayed at all - which is bad, the flash game is unplayable then. I've searched around and all suggested solutions involve Javascript, but I'm actually using PHP SDK. Isn't

iframe sends origin as null

こ雲淡風輕ζ 提交于 2019-12-24 03:34:27
问题 I have an iframe to which the content is injected from the third party library I am using. <iframe id="targetIframe"></iframe> The library is injecting a form which user needs to submit. Problem is that when the form is initialized they are doing some requests and header origin is send as a null which is causing a problem because their servers are not allowing null value. I tried to add sandbox attribute, even tried to fake the call but with origin but the iframe is secured with CORS. Is

iframe history.back() issues in Cordova app (iOS)

丶灬走出姿态 提交于 2019-12-24 03:30:24
问题 I am developing the application of Android and iOS by using Cordova. Page structure is as follows. - Page A (w/o iframe) - Page B (w/ iframe) Transitions 1. Page A --> Page B (forward) 2. Page A <-- Page B (backward by history.back()) iframe displays external web page. When it goes back to Page A(w/o iframe) from Page B(w/ iframe), i have to call hisotory.back() twice. However, Android app build by same javascript source only has to call history.back() once. In addition, a similar problem

How can I block request thats come out from iframe

主宰稳场 提交于 2019-12-24 03:25:54
问题 F.e. I have such code index.html <html> <head> <meta charset="utf-8"> </head> <body> <iframe src="iframe.html"></iframe> </body> </html> iframe.html <html> <head> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script> </head> <body> <script> $.get("http://badsite.com"); $.get("http://goodsite.com"); </script> </body> </html> As you can see iframe make two request and how can I block requests to http://badsite.com What I need to use js, php, or should configure

Chromecast Custom Receiver with YouTube Iframe API - Displaying “The uploader has not made this video available in your country” message

只谈情不闲聊 提交于 2019-12-24 03:25:01
问题 I'm working on ChromeCast custom receiver app and using the YouTube iFrame API for loading YT videos. The issue is that receiver app displaying "The uploader has not made this video available in your country" message when I cast the YouTube Premium content. I think we need to provide some authentication process to access YT premium content, How can I add authentication process in receiver app to play YT premium content? Thanks in advance... 来源: https://stackoverflow.com/questions/28944779

load a page using POST to iframe

邮差的信 提交于 2019-12-24 03:18:26
问题 I want to create an iframe with other page visible inside. The page is outside my domain. Normally I do it like that: $('<iframe />').attr('src','www.thepage.com?data=1').appendTo('body') But if www.thepage.com is accessible via POST instead of GET, how should I load it? $.ajax( type:'POST',...) fails due to Origin null is not allowed by Access-Control-Allow-Origin. 回答1: Load in a temporary page that contains a form with the fields you need (hidden) and use Javascript to submit the form. This

load a page using POST to iframe

家住魔仙堡 提交于 2019-12-24 03:18:09
问题 I want to create an iframe with other page visible inside. The page is outside my domain. Normally I do it like that: $('<iframe />').attr('src','www.thepage.com?data=1').appendTo('body') But if www.thepage.com is accessible via POST instead of GET, how should I load it? $.ajax( type:'POST',...) fails due to Origin null is not allowed by Access-Control-Allow-Origin. 回答1: Load in a temporary page that contains a form with the fields you need (hidden) and use Javascript to submit the form. This

HTML, set iframe src as a javascript variable

喜夏-厌秋 提交于 2019-12-24 03:10:30
问题 I would like to display a window in my webpage of another webpage, hopefully via iframe. I need to set the src as a javascript variable, here is the code: <html> <head><title>my webpage</title></head> <SCRIPT language=JavaScript type=text/javascript> function GoToURL(j) { var URLis = document.URLframe.Dest.value document.write("<center><iframe src=\"http://www.example.com\"/ width=1350 height=500 seamless></center>"); } </SCRIPT> <FORM name=URLframe> <TABLE align=center border=0> <TBODY> <TR>

Adding SCRIPTs to IFRAME via DOM, insertAdjacentHTML or document.write

时光毁灭记忆、已成空白 提交于 2019-12-24 02:59:05
问题 I need to add SCRIPTs into a sandboxed IFRAME and I'm trying to avoid using document.write (see here and here) but the DOM version is not executing the scripts in order. In the example below, jQuery hasn't loaded by the time the in-line script has executed, while the document.write version first loads jQuery then executes the in-line script. For my purposes (ensuring that all leading libraries are loaded before running the in-line scripts, see here) document.write might be the correct

Iframes and Same-Origin-Policy and reverse proxy hack

◇◆丶佛笑我妖孽 提交于 2019-12-24 02:59:05
问题 I have been reading up on Iframes with different domains then the parent document and I am slightly confused. I understand that if the Iframe is from the same domain as its parent document, the parent document can access the iframe's document. It seems like I could circumvent this with the following hack: I set up a web server at mydomain.com I serve the original page from mydomain.com/index.html I setup a proxy on my webserver for mydomain.com/othersite -> site2.com Add <iframe src="mydomain