iframe

JS Iframe loader

狂风中的少年 提交于 2019-12-19 10:18:38
问题 I'm looking for a way to use jQuery/js to show a 'Loading...' message while an iframe is loading, when the iframe finished to load completely, the 'Loading...' text should disappear. Is that possible with jquery/js? Note: I do not have any control on the website within the iframe. 回答1: <script> function hide() { document.getElementById('loading').style.display='none'; } </script> <iframe onLoad="hide()" ... ></iframe> <div id="loading">Please wait</div> jquery: $("iframe").load(function() { $

click on iframe element using Python selenium

时光怂恿深爱的人放手 提交于 2019-12-19 10:04:53
问题 how can i click the red button here from Host A (in this example jsfiddle.net) using selenium python? (java script limitation policy error do not let me to do it). also i do not want to click directly Red Button . thanks. el =driver.find_element_by_xpath("/html/body/div2/input") webdriver.ActionChains(driver).move_to_element(el).click(el).perform() iframe that keeps red button: <iframe src="http://www.myhostb.blogfa.com/" width="500" height="300"> </iframe> important note: imaging that

Possible to add an onclick event to a YouTube iframe?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-19 10:01:23
问题 I've got a site with an HTML5 audio player and embedded YouTube music videos. I'd like to make it so that when the user clicks on a YouTube video to play it the music will stop. Wrapping the iframe in <div id='vidWrapper' onclick='pauseAudio()'>YT stuff</div> works for the sliver of pixels outside of the iframe, but not when you click on the actual video. Anyone have any ideas? 回答1: You should use the YouTube IFrame API. Add an event listener for onStateChange to get notified when the player

How can I scroll an iframe in iOS 4 with 2 fingers?

梦想与她 提交于 2019-12-19 09:58:10
问题 I've found many related questions but none with an answer that explains how to scroll an iframe using the 2 finger method in iOS 4. I am able to scroll a div with 2 fingers by setting a width and height attribute and setting overflow: scroll; . Here's a more complete example of this: <div style='width: 280px; height: 200px; overflow: scroll; -webkit-overflow-scrolling: touch;'> Just imagine a bunch of content is in here, spanning well over 200px worth of height. You can scroll this just fine

How can I scroll an iframe in iOS 4 with 2 fingers?

自闭症网瘾萝莉.ら 提交于 2019-12-19 09:58:08
问题 I've found many related questions but none with an answer that explains how to scroll an iframe using the 2 finger method in iOS 4. I am able to scroll a div with 2 fingers by setting a width and height attribute and setting overflow: scroll; . Here's a more complete example of this: <div style='width: 280px; height: 200px; overflow: scroll; -webkit-overflow-scrolling: touch;'> Just imagine a bunch of content is in here, spanning well over 200px worth of height. You can scroll this just fine

youtube iframe events

随声附和 提交于 2019-12-19 09:47:44
问题 I try to catch the events of a youtube iframe: http://lab.joergpfeiffer.de/videofull/youtube.php So I call first the api <script type='text/javascript' src='http://www.youtube.com/player_api'></script> I set the iframe <iframe id="ytfullplayer" type="text/html" width="640" height="390" src="http://www.youtube.com/p/B93C3D017CB2D65A?enablejsapi=1&origin=lab.domain.de" frameborder="0" ></iframe> and try to set the events later in var ytfullplayer; function onYouTubePlayerAPIReady() { console

youtube iframe events

送分小仙女□ 提交于 2019-12-19 09:46:35
问题 I try to catch the events of a youtube iframe: http://lab.joergpfeiffer.de/videofull/youtube.php So I call first the api <script type='text/javascript' src='http://www.youtube.com/player_api'></script> I set the iframe <iframe id="ytfullplayer" type="text/html" width="640" height="390" src="http://www.youtube.com/p/B93C3D017CB2D65A?enablejsapi=1&origin=lab.domain.de" frameborder="0" ></iframe> and try to set the events later in var ytfullplayer; function onYouTubePlayerAPIReady() { console

facebook like box external css

谁说我不能喝 提交于 2019-12-19 09:26:58
问题 I need to customize the layout for the Like box, the problem i am getting is i coud not find any way to do it in following iframe, <iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%platform&width=700&connections=5&stream=false&header=false&height=180&css=http%3A%2F%2Flocalhost%2Fq.css" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:700px; height:180px;" allowTransparency="true"></iframe> The earlier facebook like box had

Catching "Display forbidden by X-Frame-Options” [duplicate]

痞子三分冷 提交于 2019-12-19 09:00:26
问题 This question already has answers here : Catch error if iframe src fails to load . Error :-“Refused to display 'http://www.google.co.in/' in a frame..” (7 answers) Closed 3 years ago . I understand that this error can not be overcome. But what I would like to do is that when I encounter a page that can't be embed instead the page simply loads as a pop up. What is currently happening is that I am being redirected to the page. I see the following error in chrome for pages that are unable to be

PHP + POST an HTML form from inside an iFrame and redirect parent

主宰稳场 提交于 2019-12-19 08:59:24
问题 I'm wondering if it's possible to do the following: have an iFrame inside of an HTML page. Inside the iFrame, I have a 'Pay with PayPal' button. When that button is clicked, and thus the HTML form is submitted to PayPal, I want the parent page to redirect to PayPal, rather than just the iFrame. Is this possible? Thanks! 回答1: I think you're looking for target="_top" <form action".." target="_top"> </form> 来源: https://stackoverflow.com/questions/1535026/php-post-an-html-form-from-inside-an