iframe

Adjust Height of iFrame When New Content is Loaded

大兔子大兔子 提交于 2019-12-25 16:26:02
问题 I have an iFrame that is included in my HTML and is available when the page loads. When the page first loads, the iFrame has no content/src. I am using jQuery to insert content into the iFrame dynamically. When a user clicks a link on my page, the contents of the iFrame are updated. All of this is working for me. However, I am struggling to adjust the height of the iFrame when new content is loaded. I have tried several solutions on StackOverflow but with no success. Here is my iFrame code:

ASP.NET webAPI <--> Dojo uploader response format is wrong

本秂侑毒 提交于 2019-12-25 14:46:15
问题 i have a problem with uploading documents with dojo. I´m using the dojox/form/Uploader to upload a file withiframe mode. After uploading there is a response from the server in a special format. The uploader only works when i send it like this: Server: '{"name":"file.png","file":"filename","type":"form-data"}' But the answer is: Client: "'{\"name\":\"file.png\",\"file\":\"filename\",\"type\":\"form-data\"}'" So i think there are two possible ways to solve this problem: A. Fixing it on the

Not interpret html in iframe but get the information from the html

痴心易碎 提交于 2019-12-25 14:40:14
问题 In order to reduce the time of executing, we decide not to show the table in the iframe as the client cant see it. But we have to copy the contents of the table so as to update the table in the main page (which can be seen by the client). The principle is that, the iframe shouldn't interpret html, but through a function written by JavaScript, we copy the updated table to the main page. We've thought about commenting the html out in the iframe, but it'll be very complicated as we could not get

HTML插入地图的方法

倖福魔咒の 提交于 2019-12-25 13:59:25
方法/步骤 1、打开“百度地图生成器”的网址:http://api.map.baidu.com/lbsapi/creatmap/index.html 如下图: 2、在“1.定位中心点”中,切换城市,并查找具体位置,如下图: 3、在“2.设置地图”中,可以按照自己的喜好修改地图的外观: a、地图的宽和高 b、地图上显示的按钮(缩放、缩略图、比例尺) c、鼠标和键盘对地图的操作 如下图: 4、在“3.添加标注”中,可以添加自己想要标注的位置和信息,如下图: 5、在“第二步 获取代码”中,点击“获取代码”按钮,就会弹出根据上面的设置生成代码,如下图: 6、把上一步生成的代码保存为html文件(我这里保存为map.html),在浏览器中打开就可以看到自己定义的百度地图了。 如果要把地图添加到现有的网页中,可以使用iframe标签,如: <iframe src="map.html" width="600" height="300" frameborder="0" scrolling="no"></iframe> 来源: https://www.cnblogs.com/chaochao00o/p/6478145.html

iframe is not working when I load it on another page

泪湿孤枕 提交于 2019-12-25 12:43:21
问题 I am making a like system.I have two pages;like_but_frame.php and Profile.php.The like_but_frame.php page is working well but when i try to load it into Profile.php page,it does not work.The like button appears but when I click on it,nothing happens and the developer console does not report any error.What might be the issue? Here is my like_but_frame.php page: <?php include( "Connect.php" ); ob_start(); session_start(); if (isset($_SESSION['user_login'])) { $user = $_SESSION["user_login"]; }

DOMxpath query returns nothing

房东的猫 提交于 2019-12-25 12:12:20
问题 I need to load, modify and output some 3rd party iframe on my webpage. As suggested, I had created the intermediary page that simply contains <iframe> with its src attribute. The php code that outputs the page looks like this: $iframe->loadHTML(file_get_contents("http://example.com/iframe_page.php")); //creating DOM object, see htm content below $xpathObj= new DOMXPath($iframe);//creating DOMXPath object foreach ($xpathObj->query('//div[@id="specific_id"]') as $node){ //this query returns

Paste into iFrame at caret position

橙三吉。 提交于 2019-12-25 10:21:43
问题 I'm trying to recreate the 'Paste from work' functionality in Wordpress for my clients WISIWIG editor. It uses an iframe for the editor. I can added the pasted code at the beginning or end of the current iframe, but i'd like to be able to paste it at the caret position. It's clearly possible as you can do this in wordpress, does anyone know how to do it? Thanks 回答1: Based my answer on this http://help.dottoro.com/ljnuatqw.php 来源: https://stackoverflow.com/questions/5104102/paste-into-iframe

Load multiple pages in a hidden iframe from a xul-based firefox extension

拈花ヽ惹草 提交于 2019-12-25 10:01:15
问题 From a xul-based firefox addon, I need to: programmatically create an invisible iframe (once) reuse it to load multiple URLs as the addon runs access the returned HTML after each URL loads Problem: I can only get the first page-load for any created iframe to trigger an 'onload' or 'DOMContentLoaded' event. For subsequent URLs, there is no event triggered. Note: I'm also fine with using the hiddenDOMWindow itself if this is possible... Code: var urls = ['http://en.wikipedia.org/wiki/Internet',

Load multiple pages in a hidden iframe from a xul-based firefox extension

无人久伴 提交于 2019-12-25 10:01:12
问题 From a xul-based firefox addon, I need to: programmatically create an invisible iframe (once) reuse it to load multiple URLs as the addon runs access the returned HTML after each URL loads Problem: I can only get the first page-load for any created iframe to trigger an 'onload' or 'DOMContentLoaded' event. For subsequent URLs, there is no event triggered. Note: I'm also fine with using the hiddenDOMWindow itself if this is possible... Code: var urls = ['http://en.wikipedia.org/wiki/Internet',

iframe: Subsequent clicks loads the new url in a new tab

社会主义新天地 提交于 2019-12-25 09:36:56
问题 !! SOS !! Problem Background: I have a file which contains some page titles and corresponding URLs. I am reading this file dynamically and generating a table with each row showing the (clickable) title. There is one iframe on the page. I want that when a user clicks on one of the rows, the corresponding page should get loaded in the iframe. These urls may belong to different domains. Main Issue: The first click opens the corresponding url perfectly in the iframe. However, any subsequent