iframe

Android embed video in iframe not resized on webview height change

*爱你&永不变心* 提交于 2019-12-21 23:12:04
问题 I am trying to play embeded youtube videos in webview. My problem is when I rotate screen and resize webview height, iframe is not changing its height. String embedSrc = "https://www.youtube.com/embed/8SeRU_ZPDkE"; String iframe = "<html><body style=\"margin: 0; padding: 0; background: #000;\"><iframe width=\"100%\" height=\" 100% \" src=\"" + embedSrc + "frameborder=\"0\" allowfullscreen style=\"background: #000;\"></iframe></body></html>"; webView.loadData(iframe, "text/html", "utf-8");

Is there a way to detect the src the iframe is going to be redirected to before onload?

↘锁芯ラ 提交于 2019-12-21 23:09:59
问题 I have an iframe which I have no control of its content. Inside the iframe there will be redirection, instead of redirected in the top window (which I expect), the redirection always happen in the iFrame. I tried the solution here: How to get redirect url before onload happens if no control on the redirection? but the outcome is not ideal. Now inside the iframe page I want to use $(window).unload() and change manually the top.window.location.href to force redirection in top window. So does

How to put two iframes side by side

こ雲淡風輕ζ 提交于 2019-12-21 22:05:30
问题 I have tried several codes, like this one: <div class="box"><iframe src="https://embed.spotify.com/?uri=spotify:user:1290230929:playlist:6nTIVNGZfnZ4urUiwHIgpT" frameborder="0" scrolling="no" width="100%" height="512" align="left"> </iframe> </div> <div class="box"><iframe src="https://embed.spotify.com/?uri=spotify:user:1285279066:playlist:56KI83cMiMTOocIdXq2R5j" frameborder="0" scrolling="no" width="100%" height="512" align="right"> </iframe> And it does not work side by side, if someone

How to embed shiny app on SharePoint with Iframe tag

泄露秘密 提交于 2019-12-21 22:01:25
问题 I have a very simple app showing some data. How do you embed this in a SharePoint site using using iframe ? or is there an easier way to do this ? library(ggplot2) library(shiny) library(DT) library(readr) PRTypeCount <- read_csv("H:/SP/PRTypeCount.txt") ui <- navbarPage( title = 'PRTypeCount', tabPanel('PRTypeCount', DT::dataTableOutput('PRTypeCount'))) server<-function(input, output) { output$PRTypeCount <- DT::renderDataTable( DT::datatable(PRTypeCount, options = list(pageLength = 25)) ) }

Jquery ('#iframeid').load() is executed before Iframe CONTENT (text, images) are loaded

爱⌒轻易说出口 提交于 2019-12-21 21:53:58
问题 I'm trying to access data of an Iframe's Iframe. To force my javascript function to wait I use jqueries .load function. But still my javascript code get's executed "sometimes" before the iframe's content is fully loaded. By sometimes I mean that the behavior is different for different computers. On slower computers it waits most times for fasters computers the code gets almost always executed. So I suspect that Internet explorer 8 fires the onload event to early. Is there any jquery function

How to embed shiny app on SharePoint with Iframe tag

﹥>﹥吖頭↗ 提交于 2019-12-21 21:50:17
问题 I have a very simple app showing some data. How do you embed this in a SharePoint site using using iframe ? or is there an easier way to do this ? library(ggplot2) library(shiny) library(DT) library(readr) PRTypeCount <- read_csv("H:/SP/PRTypeCount.txt") ui <- navbarPage( title = 'PRTypeCount', tabPanel('PRTypeCount', DT::dataTableOutput('PRTypeCount'))) server<-function(input, output) { output$PRTypeCount <- DT::renderDataTable( DT::datatable(PRTypeCount, options = list(pageLength = 25)) ) }

How to restrict who can iframe embed my web app?

筅森魡賤 提交于 2019-12-21 21:20:12
问题 What is the best (most secure) way to restrict which websites can iframe embed by web application? For example, everyone should be denied who is not on the list: www.myFriend.com www.anotherFriend.com www.myThirdFriend.com As a follow up question, given any restrictions for the above, what is the most secure way to find out server side which one of the white-listed sites is doing the embedding? 回答1: Use the X-Frame-Options HTTP header. X-Frame-Options ALLOW-FROM http://example.com/ See also

how to properly display SSRS site within iframe

浪尽此生 提交于 2019-12-21 21:13:39
问题 I have been working on a project where I need to load a ssrs site within an iframe. The iframe is acutally using the telerik spitter panels but the DOM refers to it as an iframe when rendered. The issue I am coming into is when referencing the SSRS site it loads wihtin the iframe but the view tiled multiple times over. In reading I have seen mention that the SSRS site also uses iframes which causes an issue when loaded into another iframe. Does anyone know of a solution for this type of

Iframe vs. div in absolute positioning

巧了我就是萌 提交于 2019-12-21 20:57:23
问题 I wonder why the following iframe doesn't stretch to cover the whole page: * { margin: 0; border: 0; padding: 0; } html, body { height: 100%; } body { position: relative; } iframe { display: block; background: tan; position: absolute; top: 0; bottom: 0; left: 0; right: 0; } <iframe></iframe> However, a div stretches as expected. 回答1: A div is a non-replaced element. When you absolutely position it, its width is given by the CSS rules defined in 10.3.7 Absolutely positioned, non-replaced

How To Prevent Iframe Pages Being Inserted Into IE Browsing History

左心房为你撑大大i 提交于 2019-12-21 20:46:50
问题 I'm having a lot of trouble with iframe pages being inserted into the browsing history of IE9. It's a pain because you have to click back several times in order to get to the previous page. What is the cause of this? Is it a bug in the browser or the page? Edit: I realized I was using javascript to update the source of all iframes on the page to add the wmode=transparent attribute. $('iframe').each(function () { var url = $(this).attr("src") $(this).attr("src", url + "?wmode=transparent"); })