iframe

An Iframe i need to refresh every 30 seconds (but not the whole page)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 03:09:34
问题 I have this bit of code <iframe marginwidth="0" marginheight="0" width="240" height="80" scrolling="no" frameborder=0 src="irc_online.php"> </iframe> I am adding this to a html widget I have on a sidebar, Is there a way I can make this refresh say every 30 seconds and not the rest of my page? Many Thanks 回答1: You can put a meta refresh Tag in the irc_online.php <meta http-equiv="refresh" content="30"> OR you can use Javascript with setInterval to refresh the src of the Source... <script>

Fitting iframe inside a div

て烟熏妆下的殇ゞ 提交于 2019-12-18 03:05:19
问题 I am trying to fit an iframe inside a div. My problem is that I can't seem to get it to nest to 100% of the width of the div, I need to specify pixel width of the iframe. I would like the iframe to be "inside" the div so that if the div is resized by a smaller browser, the iframe gets resized too. This is my code: <div class="row-fluid"> <div class="span9" id="standard"> <div class="header-box"> <p class="header" >Bla Bla Header</p> </div> <div id="wrap"> <iframe id="frame" src="https://docs

IE9 throws exceptions when loading scripts in iframe. Why?

点点圈 提交于 2019-12-18 01:33:22
问题 Precondition: I have an aspx-page with iframe inside. This iframe points to the url handled by MVC on the same site (it's hybrid site, both standard ASP.NET and ASP.NET MVC). The resulting page rendered by MVC contains a lot of scripts references. Problem: IE9 throws an exception on every single script it load in iframe. These exceptions are similar to this one: Error: 'Function' is undefined That is, it says that the most basic things every window has is somehow absent. Once you clicked

IE, P3P, IFrame and blocked cookies (works until page host page has personal information requested)

江枫思渺然 提交于 2019-12-17 23:43:02
问题 My company has a little widget that plugs into shopping carts. We are running into a problem where setting cookies in IE7 is not working. This is happening because we are a 3rd party because we are embedded into the site via an iframe. I have seen several post that say the way to solve this problem is by putting a P3P compact policy in the header. As mentioned: Cookie blocked/not saved in IFRAME in Internet Explorer I have verified that my P3P policy is in my HTTP header. And it actually

iframe refuses to display

為{幸葍}努か 提交于 2019-12-17 23:37:56
问题 I am trying to load a simple iframe into one of my web pages but it is not displaying. I am getting this error in Chrome: Refused to display 'https://cw.na1.hgncloud.com/crossmatch/index.do' in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self' https://cw.na1.hgncloud.com". Invalid 'X-Frame-Options' header encountered when loading 'https://cw.na1.hgncloud.com/crossmatch/index.do': 'ALLOW-FROM https://cw.na1.hgncloud.com' is not a

submitting the form in iframe and redirect the whole page

佐手、 提交于 2019-12-17 23:27:21
问题 i guess I have an easy question, I have not found the right answer yet thoguh. I have an iframe in my page that comes from external domain. After submiting the form which is inside this iframe, I would like to redirect the whole page, not just content inside the iframe - i guess the right way to achieve might be via "target" attribute. The sample html: <html> <body> <h1>main page</h1> <iframe src="http://example.com"> <form url="http://example.com/action"> ... </form> </iframe> </body> </html

Close ColorBox iFrame after submit

痴心易碎 提交于 2019-12-17 22:37:47
问题 I'm using jQuery ColorBox to display a shopping cart item. When a user enters the quantity in the iFrame (opened with colorbox) and clicks on the submit button, I want the iFrame to be close and main window (parent) to be refreshed automatically. I mean I want two things after submitting data on iFrame: iFrame closes automatically. Parent window getting refresh automatically. Please help me out. 回答1: use this on the parent window while opening iframe: $(document).ready(function(){ $(".chpic")

Changing parent window's URL from IFrame

牧云@^-^@ 提交于 2019-12-17 22:26:01
问题 I have a situation where I have web apps on two different servers, where App1 contains App2 in an IFrame. Any links in App2 can have target="_parent" attribute, which allow those links to open in the top window. However, I can't find any way to get the same behavior in Javascript. I found this page, which claims that the child frame can call javascript on the parent frame using parent.foo() , but that doesn't seem to work in IE8 or FF3.5. I found this SO question which explains how this

Why does a self-referencing iframe not infinitely loop and crash my machine?

假如想象 提交于 2019-12-17 22:18:20
问题 I created a simple HTML page with an iframe whose src attribute references the containing page -- in other words a self-referencing iframe. this.html <html> <head></head> <body> <iframe src="this.html"></iframe> </body> </html> Why does this not infinitely loop and crash my browser? Also, why doesn't even IE crash at this? (Note: This spawned from a team discussion on the virtues and demerits of using iframes to solve problems. You know, the 'mirror of a mirror' sort.) 回答1: W3C took care of

IE 11 first-party session cookies being lost in iframe

江枫思渺然 提交于 2019-12-17 21:42:03
问题 We have a site (www.example.com) which sends users off to a series of third party pages to verify payment details, which we do in an iframe. Initially, a local page from www.example.com is loaded in the iframe, and the user is redirected to the third party URL. Once the third party steps are completed by the user, they are 302 redirected back to a page on our site (www.example.com) within the iframe. This works in all browsers we've tested except IE 11, where our cookies appear to be lost. We