iframe

Binding scroll event to iframe [duplicate]

无人久伴 提交于 2019-12-23 12:44:41
问题 This question already has an answer here : How to make IFRAME listen to scroll events as parent when click event within parent iframe is triggered (1 answer) Closed 5 years ago . I'm using an iframe to load an external URL. Here's the structure - <iframe id="iframe-wrapper" src="http://blog.kpmg.ch/" style="width: 100%; height: 100%; overflow-y: scroll"></iframe> I'm trying to do something when I scroll through the iframe contents. I tried various ways, nothing worked. Here are some things I

Angular2 create a component that displays the content of an external webpage

南楼画角 提交于 2019-12-23 12:44:14
问题 I need to create a component that displays the content of another webpage. So for instance if I have the site of stackoverflow, I would like to create a component that does a http request and displays the content through my app. By the way, the external website is just django-rest-swagger and to access it, I need to include a header everytime I access it. So, when I make the request for the external site content I need to inlclude the header x-forwarded-host. <div> <html> CONTENT OF EXTERNAL

Iframe/CSS: Forcing Iframe to fit screen

。_饼干妹妹 提交于 2019-12-23 12:19:32
问题 I'm currently trying to have an iframe fit the size of my screen, and any other user using it at different resolutions, except no matter what I try I'll either end up with the iframe being too small or the height being too large causing a double scroll bar. (The iframe and the page itself having scroll bars). My objective is having the iframe fit only 85% width of the page (which works!), 100px from the top of the screen (also works), and then for the bottom to fit the edge of the bottom of

xmlhttprequest timeout / abort not working as expected?

随声附和 提交于 2019-12-23 12:12:03
问题 Here is my AJAX function: /** * Send an AJAX request * * @param url The URL to call (located in the /ajax/ directory) * @param data The data to send (will be serialised with JSON) * @param callback The function to call with the response text * @param silent If true, doesn't show errors to the user * @param loader The element containing "Loading... Please wait" */ AJAX = function(url,data,callback,silent,loader) { var a, attempt = 0, rsc = function() { if( a.readyState == 4) { if( a.status !=

Frame框架

徘徊边缘 提交于 2019-12-23 12:07:17
表单元素 图像热区 功能与作用:可以实现一张图上可以做多个链接。 图像热区 img usemap="#Map" map area shape( rect circle poly ) coords <img src=”” usemap=”#Map” /> usemap="#Map" , 名字可以随意。但必须加“ # ” map :图像地图标签,双标记,用法如下: <map name=”Map” id=”Map”> <area shape=” 形状 ” coords=” 坐标 ” /> </map> area :区域 shape( rect 矩形, circle 圆形, poly 多边形 ) Coords 坐标 矩形坐标:如: (coords=”0,0,80,80”) 解释:前两个 0,0, 是矩形的左上角 , 后面两个数, 80,80, 是矩形的右下角的坐标 圆形坐标:如: (coords=”118,43,35”) 解释:前两个 118,43, 是圆心的坐标,第三个数 35 ,是这个圆的半径。 多边形:坐标,每两个一组,代表一个角(顶点)。 普通框架,概念,框架集,框架页 <frameset> 属性 cols 框架左右分如 :<frameset cols=”100,*” > rows 框架上下分如 :<frameset rows=”100,*” > frameborder

Mixed Content混合内容错误 Iframe Http页面无法访问

别来无恙 提交于 2019-12-23 11:32:06
问题描述 为通过安全测试, 系统升级为https, 后由于新增了接口(页面集成方式, 即第三方系统某一个界面需要嵌入到我们系统的某个页面中) 采用iframe和重定向方式都报同样的错误, 意思就是我们系统是https, 第三方系统是http, 请求被block了. 下面是chrome报错的内容: Mixed Content: The page at ’ was loaded over HTTPS, but requested an insecure resource ‘xxxxxxxxxxxxx‘. This request has been blocked; the content must be served over HTTPS. 解决办法 提供有用的解决办法(最优1,其次2,向下排) 1.把iframe中的http升级成https。 2.https站点降级http,就能访问iframe http。 3.通过nigix做映射,页面写访问https,但nigix接收后转成http发送出去。 我的方案(方式2) 1.方式一: https://www.jianshu.com/p/af269bff60f8 行不通 2.方式二:已经通过安全测试就不扯犊子了, 将系统降为http 可行 结论 别想什么其他解决办法,最好就都升级https,提升站点安全

when using SimpleModal and open an Iframe it is calling the src twice

谁说我不能喝 提交于 2019-12-23 11:17:10
问题 I am using SimpleModal and i am opening an Iframe (using ff) it seems to work ok in ie9 but in ff it is calling the iframe src twice Thanks for any help the code i am calling looks like function addNew(){ var src = "/php/ftp/parsehome.php?dir="+userDir+"&idx=new"; $.modal('<iframe src="' + src + '" height="445" width="800" style="border:0">', { containerCss:{ backgroundColor:"#E1EFF7", borderColor:"#00A99D", height:450, padding:0, width:840 }, modal: true }); } 回答1: I ran into the same

PHP session is not working

南笙酒味 提交于 2019-12-23 10:19:07
问题 I am working with wamp2.0 - PHP 5.3, apache 2.2.11 but my sessions are not storing data. I have a page that accepts a parameter, which (simplified version) I wanna store in a session, so when I come to http://www.example.com/home.php?sessid=db_session_id The script looks like: session_start(); $sessid = @$_GET['sessid']; if ($sessid) { $_SESSION['sessid'] = $sessid; } var_dump($_SESSION); and outputs: array(1) { [0]=> string(13) "db_session_id" } which is fine, but then, when I go to link

Propagating mouse events from iframes to the hosting document

痞子三分冷 提交于 2019-12-23 10:13:38
问题 I have an iframe covering the entire HTML document, and I'd like to propagate clicks and hover events back to the hosting document. What are my options? 回答1: I was asked to look into this several weeks ago for a project. It's possible to do it, and there's a working example of it in action here: http://www.esqsoft.com/javascript_examples/iframe_talks_to_parent/ However, the crucial thing to bear in mind is that unless the parent and child are on the same domain, it's not possible to have

Wrap href around an iframe

点点圈 提交于 2019-12-23 10:00:02
问题 I want to wrap an href around a vimeo or youtube video and prevent the default playback click events of the embed and just go to the href. Does anyone know how to do this? <a href="http://tumblr.com" target="_blank" class="linkwrap"> <iframe width="420" height="315" src="https://www.youtube.com/embed/5Xbs60BMeRU" frameborder="0" allowfullscreen></iframe> </a> 回答1: html <a href="http://tumblr.com" target="_blank" class="linkwrap"> <div class="blocker"></div> <iframe width="420" height="315"