iframe

How to refresh 2 iframes with one link/button using html/js

雨燕双飞 提交于 2020-01-03 05:40:33
问题 I'm new here and like to know how to refresh 2 different iframes on one page. I found something on google using getElemenById. But it has to work in firefox and firefox has some problems with Id's. thanks in advance. <form action="managecartform.html" onclick="deleteAllCookies();"><button type="submit" >Empty cart</button></form> 回答1: What does your form have to do with iframes? Do you mean this? Load the managecartform into one frame and reload the other? <form action="managecartform.html"

Access an element inside a dynamically-created, cross-domain iFrame? [duplicate]

六眼飞鱼酱① 提交于 2020-01-03 04:46:12
问题 This question already has an answer here : Userscript to hide a child node of a cross-domain iframe (1 answer) Closed 4 years ago . I want to access an element inside an iFrame, but because of the way the iFrame is being called, I am not succeeding. This is the target page (www1.k9webprotection.com/...). The iframe is on a different subdomain: <iframe src="http://license.k9webprotection.com/..." ...></iframe> Setting a timeout or an event listener for when the iframe is loaded, did not help.

How do you create auto resizing a iframe when you make your browser smaller?

做~自己de王妃 提交于 2020-01-03 04:33:09
问题 Does anyone know of a way to auto resize an iframe when you make your browser smaller?? 回答1: You can attach a handler to the window.onresize event, and then resize your IFRAME appropriately. I prefer jQuery: $(window).resize(function() { $('IFRAME').width($(window).width()); }); 回答2: One option is to specify the <iframe> size in percent. 回答3: Haven't tried it but I guess you could use a percentage width instead of a fixed width. In that case you should probably add a minimum width and height

How do I load a URL specified in a textbox in an iframe?

心不动则不痛 提交于 2020-01-03 04:27:13
问题 I am creating a fake browser shell using CSS/HTML and Javascript (Netscape 4.0) and I would like to know if it is possible to load a URL typed in a text box in an iframe. I found something online and it loads pages in the same directory but not external URLs. here is that section of the code: <input type="submit" name="submit" id="submit" value="Go" onclick='document.getElementById("theframe").src=document.getElementById("url").value; return false;' /> and here is the iframe code: <iframe

Select frame context with javascript

久未见 提交于 2020-01-03 04:11:18
问题 Is there a way to programmatically select frame context with Javascript? Let's say there are two different frames present in the current web page, and I need to append 'hello' to the second frame. The problem is that the second frame has a different domain than the current web page. With chrome developer tools, I can simply choose the second frame context and do $('body').append('hello') from console, but I should be able to do this programatically. Reference: Debugging iframes with Chrome

Select frame context with javascript

房东的猫 提交于 2020-01-03 04:11:09
问题 Is there a way to programmatically select frame context with Javascript? Let's say there are two different frames present in the current web page, and I need to append 'hello' to the second frame. The problem is that the second frame has a different domain than the current web page. With chrome developer tools, I can simply choose the second frame context and do $('body').append('hello') from console, but I should be able to do this programatically. Reference: Debugging iframes with Chrome

full page iframe

♀尐吖头ヾ 提交于 2020-01-03 03:59:07
问题 I need a page with a header and an iframe that show from other site. here is what I use: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <style type="text/css"> *{margin:0;padding:0} html, body {height:100%;width:100%;overflow:hidden} table {height:100%;width:100%;table-layout:static;border-collapse:collapse} iframe {height:100%;width:100%} .header2 {border

facebook getUser() in fan page tab iframe shows internal server error only on IE

混江龙づ霸主 提交于 2020-01-03 03:46:09
问题 I have an application on facebook page tab that uses the getUser so that I can get the facebook id of that user it works fin on both Chrome and Firefox but not on IE. I tried to clear cache several times! here is what I am doing (this is codeigniter framework) <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Register extends CI_Controller { function __construct() { parent::__construct(); $this->load->library('facebook', $this->config->item('fb_config')); $this-

can I show a specific part of a page using document.getElementById(href)?

不打扰是莪最后的温柔 提交于 2020-01-03 03:29:27
问题 if I have a page called "content page": <body > <p id="part1">Tread ... inch. </p> <p id="part2">Tread ... inch. </p> <p id="part3">Tread ... inch.</p> </body> and another page with this java script(code in close icon doesn't appear ). <head> <script type="text/javascript" src="popupBox.js"></script> </head> <body> show content of part one : <a href="TreadDepth.html" onClick="return show_hide_box(this,400,400,'2px solid')">Click Here</a>. show content of part two : <a href="TreadDepth.html"

How should I create embed code to display my photos on someone else's website?

久未见 提交于 2020-01-03 03:27:20
问题 I have many photos already stored on my website and I want to allow other people to publish any of these photos on their own websites. What I'm trying to do is create embed code for each photo to allow third parties to publish a photo within an iframe (I'm using PHP). It's just like what Getty Images have done here - allowing others to embed their photos. Getty's embed code uses an iframe with the source to the image/webpage being something like this: src="//embed.gettyimages.com/embed