iframe

How to prevent other websites putting my web page in their iframes? [duplicate]

ⅰ亾dé卋堺 提交于 2019-12-24 07:18:55
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to prevent my site page to be loaded via 3rd party site frame of iFrame How to Block Iframe call I don't want other website use my website content by iframe 回答1: Use X-Frame-Options response header, this will tell the browser wether it should show the webpage in a frame or not. E.g. X-Frame-Options: SAMEORIGIN 来源: https://stackoverflow.com/questions/13757690/how-to-prevent-other-websites-putting-my-web-page

Passing sessions variables through an iframe, php

此生再无相见时 提交于 2019-12-24 06:58:33
问题 First timer to the site, not an overly experienced php programmer here :) I have a problem, i am using an iframe within a site which im attempting to use a session variable inside, firstly ive just been trying to display the session variable to make sure they are accessible from within the iframe: echo "session of productcheck ".$_SESSION['productcheck']." "; echo "session of productcheck1 ".$_SESSION['productcheck1']." "; echo "session of productcheck2 ".$_SESSION['productcheck2']." "; echo

Safari ios iframe blank screen on rotate

感情迁移 提交于 2019-12-24 06:50:02
问题 Using safari on an ios 10.3.2 device, we are using iframes to display the content on our site. However, occasionally when entering the page the iframe loads blank, but on inspection all the elements are rendered on the page - just invisible. Rotating the screen to landscape or pinch zooming causes the content to appear instantly, this only seems to occur in portrait mode. Page: <div class="external"> <iframe width="100%" height="100%" frameborder="0" src=""> <html lang="en" class="iframe">

Unable to print PDF file in Edge browser

不打扰是莪最后的温柔 提交于 2019-12-24 06:44:41
问题 Trying to print PDF file retrieved from server. Approach 1 Retrieve PDF from server via AJAX Create Blob ( URL.createObjectURL(pdfFile) ) Set blob ObjectUrl as a source to iframe Print iframe ( iframeContentWindow.document.execCommand('print', false, null) ) Problem Not working in Edge since it has issue link1, link2, link3 Approach 2 Set URL from which server returns PDF as a source to iframe Print iframe Problem Endpoint which returns PDF requires authorization, as i see there is no way to

How to display tooltip when mouse hover iframe

本小妞迷上赌 提交于 2019-12-24 05:56:30
问题 I'm using Telerik Radeditor which is rich text area and the editor content is an iframe, something like below: <iframe frameborder="0" src="javascript:'<html></html>';" style="width: 100%; height: 100%; margin: 0px; padding: 0px;" title="hello world" id="contentIframe"></iframe> My goal is to display the "hello world" tooltip when a user mouse hover the iframe area. As you can see I put "title" attribute but it is not showing up. To mimic the tooltip behavior I tried placing overlay div and

Check if windows/page/document/iframe has focus

百般思念 提交于 2019-12-24 05:41:10
问题 I've asked a similar question already, but I need it for a more specific case so I decided to make a new question to don't mix things up. Check if window has focus 1. I'm making a PTC site, where users get paid by visiting sites for x seconds. 2. The ad view works like this: A new page is opened, containing two things, the top bar with the counter and the iframe which contains the advertiser's site). 3. I want to force the user to see that page for the x seconds that the advertiser paid for.

Draggable JQuery UI scroll issue when using within iframe

蓝咒 提交于 2019-12-24 05:38:36
问题 Jsfiddle is here: http://fiddle.jshell.net/Msd7v/29/ Here is my Javascript: $('#app').contents().find('.dragOption').draggable({ iframeFix:true, scroll: true }); and then in the iFrame #html <div id='box'> <div class='dragOption'></div> </div> #css #box { background: red; height: 600px; width: 100%; left:10; z-index: 10000; position: relative; top: 10; } .dragOption { height: 80px; width: 200px; position: absolute; z-index: 100001; outline: 1px solid #000; top: 400px; } When you try to move

Issue with passing querystring parameters via Http Get to an iframe in IE

你离开我真会死。 提交于 2019-12-24 05:38:07
问题 This is a follow up to my previous question: Problem passing parameters via Iframe in IE. Which was never solved. Here's the core of it: I'm trying to execute an HTTP GET from my website to another website that is brought in via iframe. On Firefox, you can see in the source that the correct url is in the iframe src along with it's correct parameters-- and it works. On IE, you can see in the source that the correct url is in the iframe src along with it's correct parameters-- and it doesn't

Content in iFrame shows in Chrome but not in Firefox

你说的曾经没有我的故事 提交于 2019-12-24 05:37:08
问题 Here's the list of answers to the standard questions concerning iframe questions: The parent page and child (the page inside the iframe) are in the same domain, sub-domain and directory. There is no xml, vtt, etc. being exchanged through the iframe. The server is S3, CORS is enabled but I don't think it matters in this situation. I have a quiz (child page) that is accessed through the main page (parent). Child: https://glx.s3.amazonaws.com/ff/jqm.html Parent: https://glx.s3.amazonaws.com/ff

IE8 post file targeting iframe, arrives on server as null

天涯浪子 提交于 2019-12-24 05:22:06
问题 I have a form with just an input:file in it and the form targets a named iframe . when the user selects a file it automatically posts the form to the server. This works in IE10/firefox/chrome, but in IE8 the File parameter on my controller method is null when IE8 posts the form. Has anyone else encountered this and know of any solutions, why isn't IE8 actually posting the file data? ClientSide: function createFileUploadForm() { var frameName = 'fileUploadFormFrame'; var fileValue; var