iframe

Loading content to a jquery modal plugin: iFrame or Ajax?

Hello, I'm developing a website for a client using ASP.NET MVC 1.0. There is a "profile's page" with many links releated to the profile. For example, "request contact", "see our diretions", "add as your friend", etc. I would like to use one of the many jquery modal scripts to show this links, without load them as a normal page/link, b...

How to prevent a iframed page from opening in a new window

Hi, I have a site iframed in and it has a bunch of links in the menu. The way their site is built they have all the links in the menu set to open the pages in a new window. Is there any way to override this and have it open in the iframe? Thanks, Matt ...

How to clear the content of an IFRAME?

How do I clear the content of my IFRAME element, using javascript, without loading a blank page into it? I can figure out to do this: iframe_element.src = "blank.html", but there must be a better, instant, method. ...

MasterPage INSIDE iFrame

any remarks? Doesn't seem to be any info around. Doesn't seem to work either. ...

IFrame buster files - what's their purpose?

Looking at a few advertising companies (DoubleClick, Atlas), I've come across the concept of iframe buster files, that are hosted on the same host as the ad publisher (one example: http://www.adopstools.com/ibusters/atlas/atlas%5Frm.htm, and there's a lot of JS code that works with that page). I read that they're used to dynamically res...

Using JS how can I stop child Iframes from redirecting or at least prompt users about the redirect

Many sites have scripts similar to the one below. These are put to stop other people from framing the sites. if (top.location != location) { top.location.href = document.location.href ; } I need some way to realize that the iframe is trying to redirect, and if it is , I will remove the iFrame and instead place a link to the site. Th...

Possible/howto resize iframe on mouse focus?

I have two iframes next to each other at 50% width and am wondering if it's possible to resize one iframe to 80% when that iframe is moused over. Is it possible? If so, can someone post a small how-to on getting this to work? ...

How to access the content of an iframe with jQuery?

Disclaimer I struggled to find the answer yesterday, so I thought I'd post the answer here for everyone. How can I access the content of an iframe with jQuery? I tried doing this, but it wouldn't work: iframe content: <div id="myContent"></div> jQuery: $("#myiframe").find("#myContent") How can access myContent? Similar...

Setting the HTTP request type of an <iframe>

Is it possible to make an iframe use a POST rather than a GET request? I am not trying to post a form into the iframe but load the iframe depending on data generated on the server. Unfortunately, I can't use Javascript in this case (because it is the company's policy that the checkout must be possible without JS). ...

IE 8 bug regarding overflow hidden in the iframe

Hi, I'm trying to make a rich text editor with the background set on iframes body. The background is repeated in y axis and when the user types in the string without any spaces the horizontal scroll appears and the background is moved to the left. I fixed it with overflow-x:hidden in all browsers except IE 8 where the behaviour is the s...

iframe zoom w/ jquery

how can I zoom iframe contents by using cross browser jquery? i know this can be done with the zoom css property from IE. does gecko/webkit based browsers have a similar property? ...

Communicating with parent (Facebook FBML Page) from iFrame (Local page)

Hi, I'am currently developing a Facebook application which has a iFrame in it. The iFrame loads a Java applet (So the FBML Page is just a wrapper for header footer and the FBML functions). The current situation is, for example, the Java applet has a event (User finished playing a game) and it does a javascript call on the iFrame page. ...

sIFR not showing until all javascript has executed?

I am using sIFR on a page which I am loading into an iframe, and using a javascript in the parent window which constantly polls the iframe to see when it changes height (ie. when you click a link in the iframe page and it has a different height than the previous page). Anyways, the problem is that sIFR doesn't seem to show the rendered t...

how to pass session value to external js file

i got two pages upl.aspx and datalist.aspx i have got iframe in upl.aspx page which loads datalist.aspx now i am creating a session on radiobutton click whiich is inside datalist i want to pass this session value to external js file so that now i have a function Hidee() in uploo.aspx page which can show its value HOW TO DO THIS?? her...

jquery js import to iframe

I have a page that uses jquery ui's tabs. Each tab content is an iframe with a local page in it. These local pages have been importing their own jquery.js when their parent also have jquery.js imported. Is there any way i can use the parents jquery inside the iframes, so I dont have to add jquery.js to every single page inside the ifra...

Change value of element inside iframe after onclick event with javascript

I have some elements inside an iframe with an onclick event associated, something like: <iframe> ... <input type="text" onclick="somefunction(this)"/> ... </iframe> In the function called I try to change the value of the input, nothing special: { ... foo.value = "changed!" ... } At this point I can see in firebug that the va...

DropdownList losing items on postback in iframe.

Having a very strange issue regarding postback in ASP.NET. I have page dynamically populating DropdownLists on Page_Load, only if it's not a postback. I also have several textboxes on the page for user input. If I postback, either by clicking a submit button or via a SelectedIndexChanged event, the textboxes maintain their values, but t...

How to add dynamic html content to a servlet at run time?

I've an HTML text which i want to display on servlet. This servlet already has some text fields, forms etc. Whenever I try to add this HTML text, servlet get distorted. I used IFrame to populate the HTML text but :-(. Please suggest how I can do this? ...

Getting a collection of every IFRAME on a web page

Hello and thanks for taking the time to read my question! I am currently trying to automate some basic functionality in internet explorer for a few cases where the currently employed method does not work. To do this i am (due to the knowledge of the people i work with) creating some VBScript that uses the IE automation object. I set o...

IFrame access updated content Firefox issue

The src file of my iframe has 3 textboxes. Entering 2 values in the first 2 textboxes displays the sum in the 3rd textbox. The sum calculation AND display is done using javascript inside the src file. Frame1.contentWindow.document.body.innerHTML in Firefox gives the src file's content and not the updated content (that is, with the value...