iframe

Iframe transparent background on Fancybox 2.1.4

守給你的承諾、 提交于 2019-12-13 04:21:30
问题 As per title, adding the below to remove background on Fancybox 2.1.4 works fine on Safari, FF & Chrome but not IEs. (only tested on IE8) beforeShow: function(){ //transparent background $(".fancybox-skin").css("background","transparent"); //remove dropshadow $(".fancybox-skin").css("-webkit-box-shadow","0 0 0 rgba(0, 0, 0, 0)"); $(".fancybox-skin").css("-moz-box-shadow","0 0 0 rgba(0, 0, 0, 0)"); $(".fancybox-skin").css("box-shadow","0 0 0 rgba(0, 0, 0, 0)"); } 回答1: After digging around the

Load a specific div from a webpage inside website

丶灬走出姿态 提交于 2019-12-13 04:17:24
问题 I am seeking help in displaying a specific id div tag through iFrame & jQuery and reloading the page every 30 seconds. This is what I have so far. <!doctype html> <html> <head> <div id="viva"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"> document.getElementById('#viva').contentWindow.location.reload(); </script> </div> </head> <body> <script> $('#ctl00_ContentPlaceHolder1_dgTracker').load('https://hit.vivatracker.com/Tracker/Tracker.aspx?StoreID=217

can't add google.com as src to an IFrame [duplicate]

天大地大妈咪最大 提交于 2019-12-13 04:07:27
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to show google.com in an iframe? Why some websites can't be added as source to my iframe I have this code: <!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"> <head> <script> function changeIframe(newLocation){ document.getElementById("myIframe").src=newLocation; } </script> </head> <body onload=

Centre a overflowing element about its container

强颜欢笑 提交于 2019-12-13 04:02:49
问题 I have: <div> <iframe></iframe> </div> div { width: 100%; height: 400px; overflow: hidden; } iframe { width: 940px; height: 400px; margin: 0 auto; display: block; } The iframe will overflow the div leading to a 'missing section' on the right. I need the Iframe centred such that this 'missing section' is the same both sides. Margin: 0 auto doesn't seem to cut it. (The iframe is a video to put this into context) 回答1: What about using a negative margin (as the half of the iframe width ) as

Click event in iframe

廉价感情. 提交于 2019-12-13 04:00:38
问题 I'm trying to append the url of the parent page an iframe is located in based on the current url within the iframe. This is all taking place on the same domain, so I don't think there should be any security issues. EDIT: My code now looks like the following: function locator_url() { var iframeUrl = alert(document.getElementById("dealer- locator").documentWindow.location.href); var iframeUrlSplit = iframeUrl.split('/locator/'); window.location.hash = '#' + iframeUrlSplit[1]; }; $(document)

Error: Permission denied to access property '$' - iFrame

浪子不回头ぞ 提交于 2019-12-13 03:59:47
问题 I have a problem using an iFrame in an Bootstrap Modal. Its a News System, and i load the News Content from an iFrame from another Subdomain. Everything works fine, if a user clicks on an Image from the any news item, i want to open a Lightbox (Fancybox) in the Parent Window. Thats normally not the problem, i am using something like this: // so i know its an Popup / has an iFrame (class Popup is when it is opened in an BS Modal) - otherwise ill go to my news size and show the article there. $

Accessing Iframe Variable in Parent With Javascript

こ雲淡風輕ζ 提交于 2019-12-13 03:59:16
问题 I'm aware there are incredibly similar questions on Stack Overflow already for this, but I've tried MANY of them, and am just getting nothing. I'm trying to grab a variable from the child iframe to use in the parent window. In child.html head tag <script type="text/javascript"> var myVar="1"; </script> In parent.html <script type="text/javascript"> function load() { var scroll="0"; scroll = window.myIframe.myVar; if (scroll == "0") DO SOMETHING; else DO SOMETHING ELSE; } </script> <iframe src

How to find out xpath for iframes.Below is the picture attached

我与影子孤独终老i 提交于 2019-12-13 03:57:52
问题 I need to find out text " brands related to your search" in below image How can i write the xpath.The text is present in an iframe which has no id or class or no unique identifier.I was thinking to find it using span data component id but it did not work. By.xpath("//span[@data-component-id='36']/iframe Please help https://i.stack.imgur.com/7EW5n.png 回答1: You cannot traverse the elements on an <iframe> , it lives in a different context. You need to activate or switch to the context of the

Logging in via iFrame doesn't work with IE9?

▼魔方 西西 提交于 2019-12-13 03:56:46
问题 I've got a site http://abc.com/support, which uses an iFrame that has a source pointing to https://123.sample.com My objective was to mask the domain and the iFrame accomplishes this successfully. However, I just found out that users are not able to log into the site using IE 9(source: https://123.sample.com) when they go through the iFrame. Nothing errors out, it's just that the page refreshes and they'll still be at the login screen. But if they were go directly to https://123.sample.com in

how to inject the javascript code into iframe? [closed]

坚强是说给别人听的谎言 提交于 2019-12-13 03:37:47
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I have an iframe(src is google.com)..I want to inject the javascript code for find the list of anchor tags present in the iframe from parent to iframe.Is it possible to inject the code? Thanks. 回答1: It is not