iframe

The replacement to the name attribute...

I am confused. I need to name my iframe in order to use the name as the target in my menu's hypelinks. According to my Visual Web Developer Express the name attribute is considered outdated and a new construct is required. My question is what attrbute code do I utilize to name my iframe. Thank you ...

How do I print an IFrame from javascript in Safari/Chrome

Hi, Can someone please help me out with printing the contents of an IFrame via a javascript call in Safari/Chrome. This works in firefox: $('#' + id)[0].focus(); $('#' + id)[0].contentWindow.print(); this works in IE: window.frames[id].focus(); window.frames[id].print(); But I can't get anything to work in Safari/Chrome. Thanks ...

iframe scroll bar not appearing in IE7

I have the following code: <td colspan="7"height=200 valign="top"> <iframe id="myframe" name="myframe" src="index.php?page=1" width=810 height="100" marginheight="0" marginwidth="0" frameborder="1" scrolling="auto"></iframe> </td> I have don't see any scoll bar, either vertically or horizontally. Any ideas? Thanks ...

accessing a form that is in an iframe

I'm trying to get access to a form and its elements. The form is within an iframe and the javascript code that is accessing the form is within the main document. I'm not sure what else I should put into the question, so please let me know if I need to add something else. (form and main page are in the same domain) Thanks ...

Determine whether browser supports javascript from within iFrame?

I am building an iframe that will go into my clients' web pages. I need to figure out if the user's browser supports javascript and serve back the either the javascript or non-javascript version of the page accordingly. What's the best way to determine javascript support in this case? I thought about using javascript to rewrite the ...

Getting the img tag inside iframe

I have an iframe with a class name="blaclass". Inside it, I have one div with no name (or id) and inside this id there is a div with class name = "classs". Inside this div, lie two images (with no class name/id). How can I get those image.src? If there is a Prototype version even better! PS: I cannot add class names/ids before the pag...

How can I refresh parent window from an iframe?

I've got a parent page and an iframe inside that page. The links in the parent control the page that gets loaded in the iframe. What I want to do is refresh the parent page when the iframe gets loaded. I've got this in the iframe: RefreshParent(){ parent.location.reload(); } <body onload="RefreshParent();"> But, the above code re...

frames behind pictures?

Hey there, my question is related to HTML, and PURE html. im working on a new design for my front page on a social network called kwick, and i want to create a kind of space for my favorite Video at the moment. now my problem is, how do i realize sth like this: i take a picture of my ipod like that(just an example, its not my ipod) ht...

Block URL using IFrame

I'm loading an external page into an IFRAME, which contains an advertisment that I don't want to let load. Is there a way I can set a URL/domain blacklist for any content inside an IFRAME? ...

Trouble Using JQuery UI.Resizable() and UI.Draggable() with an iFrame

Hello All, I'm trying to create a dialog window using JQuery. I'm making progress so far, but running into some issues w/ the iframe... I know that iframes are usually frowned upon, but they are the only things that will meet the requirements of the project. Anyway, I can successfully implement the resizable and draggable plugins, bu...

JQuery Modal Boxes and Iframe

I've been using Simple Modal and i feel it doesn't live up to what i need at the moment. Is there a Modal Box that supports loading external files and allows those external files to close the modal box and redirect the parent page to some url. An example of what i want to do. You have a list of users, you could click "Add user" and a M...

What does "kill" do in JavaScript?

What does this JavaScript do exactly? parent.kill = 1; This is used in a project I'm working on to do some sort of session expiration but I've never seen it before. It's loaded in an iframe so I'm assuming that it is targeting the DOM document.window. ...

styling an iframe

Hi, I'm using the excellent Jalbum to create a photo album for a website. Each page of the generated photo album is a complete webpage, so the recommended way to embed the album within a website is to use an iframe. A problem arises when I want to style the images contained within the embedded iframe. If I add a rule such as: img { ...

HTML: iframe to work as solid as a frame

I am looking for way to implement iframe just like a frame. There is a problem with scroll bar when I update the src of it. It sometimes disappears for some web pages (like Yahoo.com). And I have to work against frame breaker too. There is a very good implementation that fits my need. It is the Navigator of EyeOS. I would like to know ...

Resize iframe height according to content height in it

Hi all, I am opening my blog page in my website, problem is i can give width to iframe but height should be dynamic so that there is no scroll bar in iframe and it looks like a single page... i have tried various javascripts to calculate height of content but all of them gives access denied permission and of no use. my question is c...

Embed Flash Object by bypassing rules?

Hi there i want to embed a youtube video to a profile page, but the social system does not allow embedding flash objects now i wonder if theres a possibility to bypass this rule, the first thing i was thinking of was embedding an iframe to a page that links the object. sadly the social network also disallows iframes. do you have any i...

How to retrieve iframe top position in IE6 using JavaScript?

Does anyone know how to retrieve an iframe top position within a page for IE6 using JavaScript? The following code works for IE7: window.frames(0).screenTop but the same code in IE6 retrieves the wrong value (far too high). Any ideas? ...

Can I change or control the color of the IFRAME area before the content loads?

I have a site where portions of the content are loaded into IFrames. The problem I'm having is that the inside content of the iFrame is white until the page itself loads, and the content has a different background color (blue, in this case). So I have these white squares on the screen until the contents load. Is there any way to speci...

Widget - Iframe versus JavaScript

I have to develop a widget that will be used by a third party site. This is not an application to be deployed in a social networking site. I can give the site guys a link to be used as the src of an iframe or I can develop it as a JavaScript request. Can someone please tell me the trade offs between the 2 approaches(IFrame versus JS)? ...

pass value to iframe from a window

Hi friends, I need to send a value to a iframe, The iframe is present within the current window. How can i achieve this? I need to do with in javascript of the parent(current) window. ...