iframe

Why does <iframe src=“https://”></iframe> redirect the page in IE 11?

隐身守侯 提交于 2019-12-12 04:39:13
问题 If I add <iframe src="https://"></iframe> to a page's HTML, the parent page is immediately redirected to a "The address is not valid" error page in IE 11. In Chrome, a blank iframe appears on the page, as I would expect. Why is this, and can it be prevented somehow? Thanks! EDIT: I've been testing a web app that displays a dashboard screen full of various types of components, all of which are configurable by users. Users can embed any external content they want, as long as it's served over

iframe containing external wesbite does not fire the onscroll event handler

不羁岁月 提交于 2019-12-12 04:37:20
问题 I understand that in order to fire the onscroll event handler in an iframe normally, the iframe must contain a site with the same domain name as the page that contains the iframe. But is there anyway at all that this can be done for an iframe that contains an external site? The onscroll event handler: <script type="text/javascript"> window.onload = function() { var frm = document.getElementById("test").contentWindow; frm.onscroll = function(){ alert("iframe scrolled"); } } </script> The above

Detect if remote website is frameable

那年仲夏 提交于 2019-12-12 04:36:29
问题 I want to detect if remote website allows to stand under iframe or not. For example if website does not want to show content under iframe (amazon.com item details page) or if they have frame busting code (walmart.com) I do not want to bother with these websites. I just want to open new window, for others (like wikipedia.com) I want to show content under iframe. My question is that is there any way to detect if website will accept being under iframe or not? 回答1: I think there's no such way.

Can I use the native android camera in phonegap over an iframe and send pictures on my webserver?

心已入冬 提交于 2019-12-12 04:29:01
问题 I am building an app and because of my missing knowledge of java and Xcode I decided to make this app in HTML,PHP,CSS & javascript(jquery). Now I'm facing the problem of getting this app to the different devices and I want to use PhoneGap for that. I placed an index.html inside the server for the app and there is an iframe placed inside and nothing more. Is it still possible for me to get access to the media storage and send PHPdata back and forth while having an iframe as a bridge between

Iframe shows ActionMethod name while loading PDF file in ASP MVC

你离开我真会死。 提交于 2019-12-12 04:17:21
问题 i am using iframe tag in order to call ActionMethod that returns FileResult to display PDF file. The issue is after it loads PDF document instead of showing pdf file name, it shows ActionMethod name on the top of the PDF file name in Chrome. Razor Code: <iframe src="@Url.Action("GetAgreementToReview", "Employee")" style="zoom: 0.60; -ms-zoom: 1; width: 100%;" width="99.6%" height="420" frameborder="0" id="agreementPdf"></iframe> CS Code: public ActionResult GetAgreementToReview() { Response

Using selenium, I need to iterate over all iframes and their child iframes on the fly

混江龙づ霸主 提交于 2019-12-12 04:16:38
问题 I need to iterate over all iframes and their child iframes on the fly as I want to perform some action on all the <img> tags. I am using selenium. public class logic { static WebDriver driver; static List<WebElement> TotaliinnerFrames=null; logic() { driver=new FirefoxDriver(); driver.get("aaaa.html"); } public static void main(String[] args) { logic log=new logic(); find_parent_iFrame(); } private static void find_parent_iFrame() { List<WebElement> TotaliFrames = driver.findElements(By

Embedding a Pentaho report inside a panel on another web page

这一生的挚爱 提交于 2019-12-12 04:14:27
问题 I have a web application that is having a portlet style main page display of multiple display panels. What I'd to have is the ability to embed a Pentaho report in one of these panels. Is this possible? so Can I embed a Pentaho report inside this panel? and how can i do that? 回答1: You should be able to do that. Here's a link to Pentaho's guide on embedding: http://infocenter.pentaho.com/help/index.jsp?topic=%2Freporting_embedders_guide%2Ftopic_introduction.html 来源: https://stackoverflow.com

How do you send a mousemove event from an iframe back to the parent using jquery?

二次信任 提交于 2019-12-12 04:09:34
问题 Using jquery, how would I send an iframe's window mousemove events back to its parent, and the parent will see the event with the mouse coordinates mapped to it's own window? Both the iframe and parent are on the same domain. 回答1: I solved this problem by overlaying the iframe with an absolutely positioned transparent div. This way, the parent always gets the mousemove events. 来源: https://stackoverflow.com/questions/9608474/how-do-you-send-a-mousemove-event-from-an-iframe-back-to-the-parent

Access frame via “relative=up” with Selenium & Ruby

谁都会走 提交于 2019-12-12 04:09:05
问题 Recently I've used command "selectFrame > relative=up" in Selenium IDE to switch between nested frames. Since i've decided to rewrite all code in Selenium and Ruby, i can't find this command analog for mentioned language. I can't select frame by name because it different after any reload. Other frame attributes are: iframe id="ext-comp-1465" name="ext-comp-1465" frameborder="0" src="/5005700001V96Ub/e?retURL=%2F5005700001V96Ub&isdtp=vw&cancelURL=%2F5005700001V96Ub&nonce

Browser redirected outside Facebook instead of redirecting it inside iframe

落爺英雄遲暮 提交于 2019-12-12 04:07:29
问题 I’ve just created a Facebook app, this is my first attempt and I followed Facebook developer's documentation totally, while completing everything as stated I am stucked at this strange situation: During authentication my app, the app redirects my browser outside the Facebook to the website page where my website is hosted, instead of redirecting it inside iframe. Am unable to redirect to some other page in my app direct plus also cant use app namespace page I am unable to retrieve the user_id