iframe

Custom scrollbar using jquery for iframe with customer url

谁说胖子不能爱 提交于 2019-12-13 01:41:43
问题 I have a client who wants me to add a custom scrollbar to an iframe. In the iframe I'm bringing in the clients retail website, so the page height does not stay the same all the time. On this site click on the "Retail Opportunities" link and a modal opens with their retail career site. I have tried adding a custom scroll bar but I had issues when I click on the jobs navigation since that page gets long. Had to take it off since it would not scroll beyond the initial height of the home page.

Accessing Javascript Variables Within An Iframe

妖精的绣舞 提交于 2019-12-13 01:26:33
问题 If i was to visit the source of my iframe, I notice that it has a value "srt" , I can access this variable by simply typing "srt" When in the iframes Source. However when it is an "iframe" typing "srt" no longer works since the variable is nested within the iframe. How can i store the value of a variable that is in an iframe, To a variable that is not In the iframe, to access this value Outside. 回答1: You can use the frames collection by index or by the frame's name. Each element in the

IFrame Popup “Window”, Show & Hide, Cross Domain

我只是一个虾纸丫 提交于 2019-12-13 01:25:17
问题 I have a web page, designed as a popup window that must be hosted by many external web sites. When the user clicks on a button in the hosting web page, the button should cause my iFrame to display. The user then interacts with my iFrame'd page to complete a specific task and eventually clicks the "close" button within my page and the frame becomes hidden again. However, because the two documents reside in different domains (and must do so), I am running up against browser security

How to reload an IFrame every x seconds?

社会主义新天地 提交于 2019-12-13 01:17:03
问题 Was wondering how I can reload an iframe every x seconds, perferably not using javascript. Thanks. 回答1: With a Refresh: x HTTP header or with an HTML element in the document loaded into the iframe: <meta http-equiv="refresh" content="x" /> This element should be placed inside of the document's <head/> element. If you do not have control over the document loaded into the frame or the server that it is served from, you have two options: JavaScript. Write another HTML page with the above <meta/>

Load Generated PDF Data into IFRAME on ASP.NET MVC

人走茶凉 提交于 2019-12-13 01:16:55
问题 I have an ASP.NET website that generates a report as a PDF. I want to load that PDF into and IFRAME on my View. But when I try, it always prompts me to download the PDF. I have tried using the File() method, returning a new FileContectResult(), and even just using Response.BinaryWrite() but nothing seems to do the trick. Anyone have any good advice? Here is the Razor code from the View: <script> $(document).ready(function () { var url = $('#reportUrl').val(); $("#iframe1").attr("src", url); }

Angular iFrame methods

醉酒当歌 提交于 2019-12-13 00:40:42
问题 I'm trying to make an Angular directive to wrap an iFrame. Because IE 11 doesn't support the srcdoc attribute I looked for a different way to fill the iFrame: angular .module('angularApp') .directive('easyframe', easyframe); function easyframe() { return { restrict: 'E', scope: {content: '='}, replace: true, template: '<iframe id="easyframe" width="100%"></iframe>', controller: function ($sce, $scope, $element) { $scope.$watch('content', function () { var content = $sce.trustAsHtml($scope

YouTube URL - regex

倾然丶 夕夏残阳落幕 提交于 2019-12-13 00:35:08
问题 I have following config in my antisamy policy file: Old YouTube Object: <object width="1280" height="720"> <param name="movie" value="http://www.youtube.com/v/Hl-zzrqQoSE ?version=3 &hl=en_US &rel=0"> </param> <param name="allowFullScreen" value="true"> </param> <param name="allowscriptaccess" value="always"> </param> <embed src="http://www.youtube.com/v/Hl-zzrqQoSE ?version=3 &hl=en_US &rel=0" type="application/x-shockwave-flash" width="1280" height="720" allowscriptaccess="always"

How to detecting a click under an overlapping element?

自闭症网瘾萝莉.ら 提交于 2019-12-13 00:21:08
问题 I have two HTML documents, b.html contains c.html using an iframe . On b.html I need to draw some DIV (in my example id=selector), which partially cover content of c.html visualized in the iframe . I need to get the ID of a DOM element corresponding to the mouse coordinate under the DIV selector. At the moment Using document.elementFromPoint() directly in in c.html works partially, as when the mouse it is on DIV selector I cannot identify the underling DOM element in c.html (in this example

(Responsive)Table Width does not fit the container inside iframe on ios safari

∥☆過路亽.° 提交于 2019-12-12 21:47:42
问题 I have an issue of rendering table inside iframe on iPhone's safari. Here is the example: http://jsfiddle.net/qb86ojms/ If you run it on desktop browser (with smaller size) or android chrome, it works well. The table won't exceed its container. However, on iphone, it doesn't work correctly. P.S. The way to create this responsive table is just an example I found on google. I use this just because it is easier for me to show the problem I encountered. I actually use bootstrap responsive table.

JavaScript HTTPS to HTTP iFrame Security Question

馋奶兔 提交于 2019-12-12 21:19:13
问题 I'm working on a user login system and I have come up with a solution that I wanted to run past you fine folks to make sure I wasn't about to create a giant security flaw. Here is what we have. You start on an HTTP page that when you click a link will open a modal window. The first link from an HTTP page when clicked will repopulate the modal with an iFrame that links to an HTTPS page. Since I can't have the HTTPS talk to the HTTP page I'm using a document.location setting on the HTTPS iframe