iframe

iframe can't find YouTube videos in HTML

若如初见. 提交于 2020-01-04 09:20:53
问题 For a website I am designing for an assignment about kids films and I thought I would put an iframe in to show the trailer from a YouTube video. This is the code I used (just with a test video); <iframe width="560" height="315" src="//www.youtube.com/embed/xxMcViTf7KU" frameborder="0" allowfullscreen>This is the test iframe</iframe> The result is the page begins to load, then a box comes up saying 'file or directory not found'. As far as I am aware, the code is all correct. I don't understand

iframe auto resize

杀马特。学长 韩版系。学妹 提交于 2020-01-04 09:19:19
问题 I have been desperatly searching the web for a way to auto resize an iframe. I have tried many scripts online, but most recieve a permission denied error. Both sites are members of the same subdomain site 1: (views iframe) sub.domain.site.ca site 2: name.site.ca how is this done (both are members of 'site.ca') 回答1: I think this is the exact answer you are looking for: http://ofirpicazo.com/javascript/iframe-resizing-across-subdomains/ 回答2: If you are using jquery then you may put this code in

How to call function of another iframe

不打扰是莪最后的温柔 提交于 2020-01-04 08:34:07
问题 I'm trying to call iframe2 function from iframe1 document.getElementById('cDiv').contentWindow.toggle_main(); var iframe = document.getElementsByTagName('iframe')[1]; iframe.contentWindow.myFunction(); The console is returning Uncaught TypeError: Cannot read property 'contentWindow' of undefined I have also tried: window.frames['iframe2'].toggle_main(); The function in iframe2 is called: <script> window.myFunction = function(args) { alert("called"); } </script> The iframes are defined as:

in coldfusion, variables in what scope can be passed to and iframe page?

白昼怎懂夜的黑 提交于 2020-01-04 08:14:22
问题 i wrote 2 pages to test this problem, but the server complaints error. i don't know why, anyone can explaint it? great thanks. this is 1.cfm <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title>Page Title</title> </head> <body> <cfscript> a="aaaaaaaaaaa"; b="bbbbbbbbbbb"; request.r1="rrrrrrr111111111"; request.r2="rrrrrrrr222222222"; session.s1=

File Download using iframe not working in Iphone/Ipad

北城以北 提交于 2020-01-04 07:54:59
问题 File download feature is not working for my MVC-Bootstrap web application that uses an iframe in Iphones/Ipads ( for both Safari and Chrome). Everything works well in desktops,laptops and in Android devices ( for all browsers). In a button click, I use the below Jquery code to invoke an iframe to download a PDF $("#iframedownload").attr("src", downloadURL); downloadURL points to the page that has the code to download the file. Code to download file return File(filebyteArray, "application/pdf"

Access a span inside iframe using mshtml

我们两清 提交于 2020-01-04 07:18:51
问题 Im creating an IE BHO and trying to access a page that has multiple iframe tags. How to access the text in a span with id="messageText-txt" which is inside a specific iframe with name="isolatedWorkArea" and id="isolatedWorkArea" using mshtml. I tried the following options but none of them returns me the text. Any idea? Option 1: void BrowserEvents_NavigateComplete2(object pDisp, ref object URL) { SHDocVw.InternetExplorer currentIEWin = pDisp as SHDocVw.InternetExplorer; mshtml.IHTMLDocument2

Access a span inside iframe using mshtml

旧街凉风 提交于 2020-01-04 07:18:12
问题 Im creating an IE BHO and trying to access a page that has multiple iframe tags. How to access the text in a span with id="messageText-txt" which is inside a specific iframe with name="isolatedWorkArea" and id="isolatedWorkArea" using mshtml. I tried the following options but none of them returns me the text. Any idea? Option 1: void BrowserEvents_NavigateComplete2(object pDisp, ref object URL) { SHDocVw.InternetExplorer currentIEWin = pDisp as SHDocVw.InternetExplorer; mshtml.IHTMLDocument2

Where is X-FRAME-OPTIONS: DENY coming from on Django site via nginx?

Deadly 提交于 2020-01-04 06:12:51
问题 My Django site uses django-summernote in iframes, and is throwing this error: Multiple 'X-Frame-Options' headers with conflicting values ('SAMEORIGIN, DENY') encountered when loading 'http://example.com/summernote/editor/id_comment_text/'. Falling back to 'DENY'. I can't figure out where the DENY is coming from. In my Django project settings I have: MIDDLEWARE_CLASSES = ( ... 'django.middleware.clickjacking.XFrameOptionsMiddleware', ... ) which: "By default, the middleware will set the X

Where is X-FRAME-OPTIONS: DENY coming from on Django site via nginx?

白昼怎懂夜的黑 提交于 2020-01-04 06:12:21
问题 My Django site uses django-summernote in iframes, and is throwing this error: Multiple 'X-Frame-Options' headers with conflicting values ('SAMEORIGIN, DENY') encountered when loading 'http://example.com/summernote/editor/id_comment_text/'. Falling back to 'DENY'. I can't figure out where the DENY is coming from. In my Django project settings I have: MIDDLEWARE_CLASSES = ( ... 'django.middleware.clickjacking.XFrameOptionsMiddleware', ... ) which: "By default, the middleware will set the X

How to change part of an iFrame’s URL to a random string?

为君一笑 提交于 2020-01-04 06:03:49
问题 Consider this simple iFrame: <iframe src="http://example.com/iframe/?user=123&name=test" width="200" height="200"></iframe> What I want is to randomly change the part test . For example change this src="http://example.com/iframe/?user=123&name=test" to something like this: src="http://example.com/iframe/?user=123&name=yxcvb" The string should contain random letters of the alphabet and have a length of up to 10 characters, e.g.: src="http://example.com/iframe/?user=123&name=qwertzuiop" 回答1: I