Social Media
More About This Website

My name is Wayne Robinson and I'm a web applications developer from Queensland, Australia. In August 2005 I discovered Ruby on Rails and instantly fell in love. From that point forward, Ruby on Rails has been my language of choice for new projects however, I still use PHP to maintain some legacy applications.

Categories
Login
« iPhone 4 and Telstra | Main | A JRuby/Rails Message Driven Bean »
Tuesday
Apr062010

Selecting an element/object in an IFRAME

I recently needed to get an object from a child IFRAME from its parent. Without using any helper libraries, the easiest way to do this is with the following:

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments (2)

How is it possible dude. its a cross domain call. unless you did it in same domain.
I am getting Permission denied for <https://xxxxx.com> to get property HTMLDocument.getElementById from <http://mysite.com>.
August 14, 2010 | Unregistered CommenterChandra
This was a while ago now, but this was specifically to get around cross-domain problems for someone else's application and it worked.

It is possible that your browser doesn't support this, or it has been patched in the meantime.
August 14, 2010 | Registered CommenterWayne Robinson

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.