iframe

Override the getFocus of an external page that loads in iframe

I have multiple pages laoding in an iframe and one of them seems to be getting focus, since the page scrolls (by itself) to that spcific iframe. Is there a way to override this? ...

Back Button with iFrames

I'm using an iframe to display content that has links. When the user clicks around in the iFrame and hits "back," it goes back in the iFrame. This behavior is OK. However, once they're back to the first page of the iFrame and they hit "back" again, the entire window is taken back to the previous page. This is unwanted. To prevent th...

Why does my iframe content have an empty area around it?

I have created an iframe code that I want people to use as a widget on their website. This iframe will load a webpage which has a button and a counter. In the accessed page I've got a graphic. But the iframe is rendered in the browser with a white empty area around it. Why is this happening? Here's my code: - At the client side: <scri...

Have you ever used IFrame Shims on UL tags?

I ahve a menu structure that uses UL and LI elements to drop down from a main menu. The problem i am having (of course) is in IE6 where the menu drops behind SELECT elements despite the z-index. I have tried adding an IFram shim to the UL which contains the LI elements which are the menu items. The problem is the Shim sits on top of t...

Is there a way to detect the start of a download in JavaScript?

In our current project we are providing a PDF download that can be customized by the user through an HTML form he submits. It takes several seconds to dynamically generate the PDF and I'd like to visualize this, e.g. by disabling the submit button until the download starts. Unfortunately, I couldn't find a way to detect when the download...

why is the iframe contents empty?

Hi All. I'm trying to understand this bit of code: in display.php: <html> ... <body> <table> <tr> <td> User info: <iframe id="SpControlFrame1" name="SpControlFrame1" src="javascript:'';"path_src="index.php?cmd=YYY" ></iframe> </td> </tr> </table> </body> </html> in another file, I have a sw...

What does the browser do when the source of iframe is javascript

hi All. When the source of an iframe is: javascript:''; as in: <iframe id="SpControlFrame1" name="SpControlFrame1" src="javascript:'';" path_src="index.php?cmd=YYY" ></iframe> What is going on? What does the src="javascript:'';" tell the browser to do? what does the "path_src" do? Thanks Chris ...

How do you get rid of all scrollbars in an iframe in Safari/webkit?

I've tried scrolling="no" and overflow:hidden; Nothing seems to make the vertical scrollbar go away in iframes on Safari/webkit. Anyone know? ...

Howto activate javascript-tag fetched from iframe?

I have a Rich Text Editor in Javascript in which I want to be able to enter an embedded widget in a Javascript tag. I.e: <script src="http://www.mydomain.com/script.aspx?id=123" type="text/javascript"></script> Still using JS I move the html-content from the iframe into a DIV in the page: <script> function copyRtfToDiv() { ...

load aspx in div or adjust the size of a iframe

Hello, I have a htm file with an iframe and a menu structure. The menu can load a htm file in the iframe or a aspx file. No problem at all. But... Now they want the iframe to get the size of its content. (so there will be no scrollbar in de iframe, but you have to scroll the whole htm file) I didn't get this to work so I thought I wou...

Encoded character is used instead the correct one

I have a little problem and I'm hopping that you can help me solve this annoying issue. I need to use an iFrame in an administration panel to let users use the selection service, and in the HTML I have: <iframe scrolling="yes" runat="server" title="Par Selection" id="iFrame" frameborder="0" enableviewstate="true" width="100%" heigh...

Galleria menue

Im using Galleria for a menu and everything is beautiful except when put into an iframe the title content overlaps the menue pictures. Ive tried making the iframe bigger even as large as the page itself but nothing works,,? ...

Going beyond the iframe

Hey! I am trying to get an iframe B communicate with site A. I've searched and searched and every thing I read says it's impossible if they are of different domain (the iframe src is coming from a sub domain). I want to communicate because my company has ads on its page and it needs to refresh them every X minutes. This is ok if it's a...

Passing cookie data between iframes

Say I have a website, www.example.com, with a login box which sits in an iframe situated in api.example.com. My question is: Is it possible to pass cookie data from the inner iframe (api.example.com to the website, so the website knows when the user logged in? Is it possible to do this client-side, without the need to refresh the whole...

Altering IFrame attributes from within the IFrame source. Is it possible?

On my computer, I'm using a custom adblock based on HOSTS redirection (so I can have adblock in Chrome). I'm running IIS on my machine, so I have a custom blank 404 error that displays when an iframe-based ad is displayed on a page. I've modified my 404 error to inherit its background color from its parent so that the ad doesn't look o...

What are best practices for using frames (or iframes) with Rails?

I'm building a Ruby on Rails app where people are clicking on addresses. When they click, I want to display a small google map of the address in a frame (I want to use a frame/iframe so when they scroll down to look at more addresses, the little map won't scroll off too.) I'm having a hard time finding examples or discussions of this. I ...

force left (nav) frame when show some pages

I've an old website, navigation in an frame at left, pages at right. I want when an page is url'd directly the nav (left frame) shows also. Until now I was an js working, but I don't know from when it are not working, now returns this message: *Forbidden You don't have permission to access /master.html on this server. Additionally, a ...

How do I prevent a swf from refreshing when an iframe is resized?

I am resizing an iframe, and when I do that in Firefox, the content gets refreshed. I have a swf that extends, and in Firefox when the iframe extends to accommodate the swf, the swf appears in its normal position. In IE this doesn't happen. Anyone know how to prevent the refresh from happening in Firefox? Thanks Edit: Ok I think...

Accessing frames via the DOM in IE

OK, every other browser works fine with the method I have coded so far but for some reason Internet Explorer will not work. I have spent hours of time (more time than actually developing the feature!) on compatibility and am close to giving up! I have a forum and one of its neat features is the WYSIWYG editor. For that, I essentially ha...

Set iframe to height of content for remote content

The question of how to make your iframe fit 100% of your content (using JavaScript) has been answered on the forum already... for iframes displaying content from the same domain only. My questions: Is it possible to resize an iframe to fit the content when the iframe src attribute is for a page outside of the domain of the page containi...