Iframe contents not accessible from a page in different domain

Posted by geekonweb on Stack Overflow See other posts from Stack Overflow or by geekonweb
Published on 2010-03-14T19:40:36Z Indexed on 2010/03/14 19:45 UTC
Read the original article Hit count: 140

Filed under:
|
|

Need some help from javascript gurus.

I have one page where http://www.google.com/finance/converter is embedded inside IFrame. I am able to get the event notification whenever Google Finance page loads. Now problem is this that contents of this page is not accessible through javascript. It seems to be some security issue (firebug notified). Is there any workaround so that I can access values (result and select boxes) using javascript?

I am using ..

function iframe_loaded(){
  $("#frame").contents().find("select");  // returns 0 elements
}

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about iframe