iframe

How to detect when iframe starts loading another page?

▼魔方 西西 提交于 2019-12-25 05:04:48
问题 I'm trying to hide an element in same-origin iframe. However, this son of a bi*ch blinks for a few ms before getting hidden. So what I did was added display: none and remove it after iframe is loaded - great. But now, when user clicks inner page link of iframe, which also contains element to be hidden, it still blinks (because display:none is now removed). I need to detect when to add it again, i. e. just before another page starts to load. Testing here: https://www.w3schools.com/tags/tryit

Fancybox with an iframe cross-domain, partially rendered with Explorer10 compatibility mode

非 Y 不嫁゛ 提交于 2019-12-25 04:55:07
问题 Site that open a fancybox iframe, and in the i-frame there is a aspx - ajax page of other domain. just with IE10 in compatibility mode (No problem with others browsers), the page is just partially rendered, and when I click on a button (example to change the color of the bag) the page is correctly rendered. First rendered: After click on orange color: UPDATE: 1) On a separate iframe (without fancybox) the page works perfectly. 2) It's not a cross-domain issue, problem exists also on my pc.

Change background color of body element inside an iframe

99封情书 提交于 2019-12-25 04:51:08
问题 I have the following code: <table id="first"> <tr class="my-field my-field-color-picker" data-name="background_colour" data-type="color_picker"> <td class="my-input"> <input type="text" class="wp-color-picker"> </td> </tr> <tr class="my-field my-field-wysiwyg" data-name="text_block" data-type="wysiwyg"> <td class="my-input"> <iframe> <html> <body id="tinymce" class="mce-content-body"> some text </body> </html> </iframe> </td> </tr> </table> <table id="second"> <tr class="my-field my-field

Change background color of body element inside an iframe

隐身守侯 提交于 2019-12-25 04:51:06
问题 I have the following code: <table id="first"> <tr class="my-field my-field-color-picker" data-name="background_colour" data-type="color_picker"> <td class="my-input"> <input type="text" class="wp-color-picker"> </td> </tr> <tr class="my-field my-field-wysiwyg" data-name="text_block" data-type="wysiwyg"> <td class="my-input"> <iframe> <html> <body id="tinymce" class="mce-content-body"> some text </body> </html> </iframe> </td> </tr> </table> <table id="second"> <tr class="my-field my-field

Parse HTML with htmlDOM, replace all iframe tags with another

半城伤御伤魂 提交于 2019-12-25 04:44:09
问题 I am using the html DOMDocument to find all instances of iFrames w/in a $content variable. I am able to output an image for each instance but would rather replace the iframe with the image and then save back to the content variable. Instead of echo ing my result I would like to replace the current iframe. How do I do this? $count = 1; $dom = new DOMDocument; $dom->loadHTML($content); $iframes = $dom->getElementsByTagName('iframe'); foreach ($iframes as $iframe) { echo "<img class='iframe-"

Django - Parse XML, output as HTML fragments for iFrame?

霸气de小男生 提交于 2019-12-25 04:38:28
问题 I've been asked to quickly put together a small system that takes a Yahoo XML feed, parses it, and creates a HTML fragment based on it. At the moment, I'm using Django to handle the URL routing, with some Python script, and outputting a bit of HTML in a (with hardcoded dimensions as inline CSS), that can hopefully be put into an iframe (this part was my half-baked idea). I've also been asked to throw in a few other bits, like something to parse Twitter XML feeds, Wordpress XML search results

javascript dynamically add frame to frameset

大兔子大兔子 提交于 2019-12-25 04:38:14
问题 The following favelet in IE is causing something similar to a document.write which is displaying [object]? I am attempting to dynamically add a frame to get javascript variables from another page to autopopulate a form. I cannot edit the source this must execute from a favorite or bookmark. javascript: var newFrame = document.createElement("frame"); newFrame.id = "externalFrame"; newFrame.name = "externalFrame"; newFrame.src = "listparent.jsp?listType=all"; var m = document.getElementById(

Including banners with Iframes effects on SEO?

≡放荡痞女 提交于 2019-12-25 04:29:09
问题 I made a HTML5 banner of my website. I want to host it on my server and provide it to other sites with an Iframe. Is this bad for SEO? Will the link on the banner as a link pointing to my site? In such case what can I do so it counts towards Google rankins/how else can I include the banner outside my site? 回答1: It won't affect your SEO since iframe aren't search engine friendly. A better way to do this is to use JavaScript to provide the banner and then use <noscript> to link back to your

Iframes in firefox not updating when hidden

人走茶凉 提交于 2019-12-25 04:21:26
问题 I'm having troubles with a page that display a slideshow using the jquery.cycle2 plugin. The "slides" are actually divs containing Iframes that the plugin will show as a slideshow. The problem is that the Firefox and Chrome will pre-load the iframes and then show a cached version of the Iframe which in my case is not acceptable since these Iframes are showing data from reports that need to be up-to-date. Weirdly enough Internet Explorer reloads the Iframe each time the slideshow plugin

Iframes in firefox not updating when hidden

孤街醉人 提交于 2019-12-25 04:21:04
问题 I'm having troubles with a page that display a slideshow using the jquery.cycle2 plugin. The "slides" are actually divs containing Iframes that the plugin will show as a slideshow. The problem is that the Firefox and Chrome will pre-load the iframes and then show a cached version of the Iframe which in my case is not acceptable since these Iframes are showing data from reports that need to be up-to-date. Weirdly enough Internet Explorer reloads the Iframe each time the slideshow plugin