iframe

Iframe default height

亡梦爱人 提交于 2020-01-06 03:59:26
问题 Why does iframe have a default height of some 100px when the html content inside has only 20px? You can view an example here: http://www.tulumarka.com/galerija/28497/after-beach-party---02072010papaya/?pid=418319 Below the thumbnails there are two iframes that push that content below them but shouldn't do that cause they have no content in them that is that high. I cannot set static size to iframe cause they will be dynamically filled with banners and need to dynamically resize themselves.

How to access iframe element from its child element

别来无恙 提交于 2020-01-06 03:47:05
问题 I have a requirement to access iframe element object from its child element in a event handler function. An example would be like this. function callback(ev) { //get the event target element var targetElement = ev.target; //get the document object of the target element var doc = targetElement.ownerDocument; //Question: how to get to the doc's iframe object // I tried these properties below, both returns null var ifrmEle = doc.parentElement; var ifrmEle = doc.parentNode; } Say the

Accessing WordPress's TinyMCE iFrame

时光毁灭记忆、已成空白 提交于 2020-01-06 03:11:28
问题 Using jQuery I'm trying to manipulate the WordPress content editor, which uses TinyMCE inside of an iframe. I can't seem to get the following code to work as intended: jQuery(document).ready(function($) { $('#content_ifr').ready(function() { $('#content_ifr').contents().find('body').css('background-color', '#f33'); }); Regardless of whether I use ".ready()" or ".load()", the event will fire before the TinyMCE editor (the body of the iframe) is completely finished loading. However, the

How take XPATH inside a iframe?

情到浓时终转凉″ 提交于 2020-01-06 03:07:26
问题 Im trying to get the XPATH inside a iframe called "gadget_6" i need the xpath of select div. Using selenium i do: self.change_frame('__gadget_6') #Change to the correct iframe after that, i try to do: self.selec_orgvdc = self.driver.find_element(By.XPATH,'/html/body/div[5]/div/div/div/table/tbody/tr/td/div') for posteriorly do: self.selec_orgvdc.click but i obtain the error: InvalidSelectorException: Message: invalid selector: Unable to locate an element with the xpath expression /html/body

How take XPATH inside a iframe?

匆匆过客 提交于 2020-01-06 03:07:08
问题 Im trying to get the XPATH inside a iframe called "gadget_6" i need the xpath of select div. Using selenium i do: self.change_frame('__gadget_6') #Change to the correct iframe after that, i try to do: self.selec_orgvdc = self.driver.find_element(By.XPATH,'/html/body/div[5]/div/div/div/table/tbody/tr/td/div') for posteriorly do: self.selec_orgvdc.click but i obtain the error: InvalidSelectorException: Message: invalid selector: Unable to locate an element with the xpath expression /html/body

how to include css and javascript in iFrame

…衆ロ難τιáo~ 提交于 2020-01-06 02:47:07
问题 My css and javascript aren't taken into consideration in iframes. For example I've this iframe : <iframe name="richTextField" id="richTextField"/> Where I inject a .css file after page load: $(document).ready(iFrameOn); function iFrameOn() { richTextField.document.designMode = "On"; richTextField.document.head.innerHTML = '<link rel="stylesheet" type="text/css" href="iframe.css">'; } In chrome the head of my iframe will contain my stylesheet but it won't have any effect, in ie it's not even

Parent listeners triggering Angular 2 iframe re-render

做~自己de王妃 提交于 2020-01-06 02:12:45
问题 EDIT: Looks like ANY event is causing angular to re-render the component(ancestor listeners and siblings)...is this a design intent behind ngZone and component interaction? original: I have a web page with an iframe running an Angular deployment. The page (parent to the iframe running angular) looks like it has a blanket click event. I can't seem to find a way to prevent this listener from causing NgZone from triggering angular's ng directives from being evaluated every time the parent event

jquery load and animate iframe with content

北慕城南 提交于 2020-01-06 01:59:27
问题 I'm trying to achieve an effect of content sliding (and easing) in a menu button when it is clicked. It would be for a normal site with different content (gallery, portfolio, videos, etc) and submenus on some pages that would slide in. I have learned about all the sliding plugins (like coda slider) that slide through pre loaded and hidden divs. but i have concerns that if i load the whole website on the first page, that just sound wrong. on the other hand doing it with iframes and loading in

How to stop “pop out” in embedded video with <iframe> from google drive

孤街醉人 提交于 2020-01-05 14:11:22
问题 with Google Drive you may embed videos in your website with the tag: <**iframe src="https://drive.google.com**/file/d/LINKTOMYFILE/preview" width="640" height="480" frameborder="0" scrolling="no" seamless></iframe> on the Top Right there is a Gray Box . This takes you to the download / embedding GoogleDrive page. I'd like to stop that. Anyone one knows how to hide it? Or at least how to mask it with a customs CSS? this is what I get by inspecting the element in the div: <div class="drive

disable iframes automatic onload

社会主义新天地 提交于 2020-01-05 13:51:10
问题 i have one html with multiple pages in it. i have some pages that i open them in iframes. when i open the html page (it contains all pages in it) it starts loading all iframes and the page becomes so laggy and slowly. is there any way to disable automatic iframes load? or is there any other way to open pages without iframes but still stay in my app? this is my part of my pages (that in one html) code: <html> <head> </head> <body> <div data-role="page" id="website"> <div data-theme="a" data