iframe

After update to MVC 5, iframe no longer works

拈花ヽ惹草 提交于 2019-12-17 19:14:00
问题 I updated my project MVC version to 5 and now iFrame does not load, I get this error: Load denied by X-Frame-Options: www.blahblah.com does not permit cross-origin framing. I noticed that for some reason now the X-Frame-Options header has SAMEORIGIN filled which does not allow the iframe to load a page from a different domain. This is a problem for me as I develop both the containing and inheriting page. I tried everything in IIS to change this header to no avail. Anyone encountered this yet?

get iframe page title from javascript using jquery

廉价感情. 提交于 2019-12-17 18:58:56
问题 How to get iframe src page title and then set main page title 回答1: If you want to do it using jQuery: var title = $("#frame_id").contents().find("title").html(); $(document).find("title").html(title); You can do it only when pages are on the same domain, otherwise it's useless. 回答2: Granting that iframes src and the parent document src are the same domain: Parent document: <html> <head><title>Parent</title> <body> <iframe id="f" src="someurl.html"></iframe> <script> //if the parent should set

How to trigger onload event when downloading a file in an iframe?

泄露秘密 提交于 2019-12-17 18:55:37
问题 Suppose we have the following HTML file: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Test iframe download</title> <script type="text/javascript"> var init = 0; function download() { document.getElementById("dload_frame").src = "http://example.com/dload.py"; } function alert() { if (init == 0) { init = 1; } else { document.getElementById("alert_span").innerHTML = "Got it!"; } } </script> </head> <body> <span id="alert_span">Main content.</span><br/> <input type="button" value=

Is it possible to update angularjs expressions inside of an iframe?

半腔热情 提交于 2019-12-17 18:47:20
问题 So...for example, I am trying to pull in an email "template" into an iframe as a "preview" for the user inside of an angularjs app. The iframe lives inside of the controller area (let's call it MainCtrl). The user would then be able to, using the form elements provided inside MainCtrl, update the preview based on their input. So for example let's say our template being pulled into the iframe looks something like this: <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device

How do I remove iframe within itself by using javascript

ぃ、小莉子 提交于 2019-12-17 18:44:09
问题 I know that there are several similar questions, but I have to ask the question again with attached code because of being unable to work out. I have two .xhtml file in JSF project. One is mainPage.xhtml has a button that generates dynamic html code to create an iframe (iFramePage.xhtml) and show it on the browser; <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http:/

Firefox Addon SDK: Loading addon file into iframe

老子叫甜甜 提交于 2019-12-17 18:43:50
问题 I want to load a resource:// link, respectively a local file from my Firefox addon into an iframe in a web page. The reason is, that the resource should be visually embedded into the web page while not giving the website access to it's DOM for security reasons. The issue has been discussed in various places in the past, e.g. here (without solution): https://bugzilla.mozilla.org/show_bug.cgi?id=792479 As most of the postings are rather old, I want to ask, if in the meantime there are any new

php session & iframe

核能气质少年 提交于 2019-12-17 18:42:13
问题 I have read a couple of related posts here, but cannot seem to be able to make my script work as intended. I have a login page where a user logs in. If the password matches, the script writes two values into the $_SESSION variable: ['loggedin']='yes' and ['loginname']="username" . After successful log in, the user goes to another page that has 2 iframes in it. One iframe uses external content and does not require authentication (removing this iframe from the page does not change anything).

Include a webpage inside a div

前提是你 提交于 2019-12-17 18:29:25
问题 I have to include a webpage inside my webpage's div. I want somehting like iframe to be done with DIV . Basically, I will be providing a URL to my div and it has to open it inside itself... Do we have something like this in modern HTML? I cannot use frames as some browsers have issues with frames. 回答1: Nope. You can't embed a complete HTML document inside another div element as this is a block level element and W3C has defined what could be included inside it. But there is a workaround.

IE8 web font iframe bug workarounds

偶尔善良 提交于 2019-12-17 18:22:20
问题 This blog post (slightly annoying page there) (and that's not my blog by the way) describes a bizarre bug I ran into yesterday in Internet Explorer 8 only. The bug involves .EOT web fonts and <iframe> elements. I haven't extensively researched the exact trigger for the bug, but it's basically the case that a page using a web font that loads content into an <iframe> such that the frame also uses a web font becomes "defaced" by the browser. The previously-OK text rendered with the web font

Difference between contentDocument and contentWindow javascript iframe/frame access properties

人走茶凉 提交于 2019-12-17 18:13:30
问题 What is the difference between these two properties (contentDocument and contentWindow)? Is there any difference in the way they acces the content in the frame/iframe? Is there any performance issues? Should I use contentXXXXX.document.getElementsBy... or contentXXXXX.getElementsBy... ? I've been searching around in the web but haven't found too much information and before I did a big research I thought I could ask the great community here at stackoverflow. As a comment I'm doing a script