Monday, July 20th, 2009
Actions: RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Nice post on how to access content in IFrame in Jquery here.
how can i access the value inside iframe help me please
@videolar If the iFrame is from the same server, then the above solution should work. Otherwise, you are kind of doomed.
the ONLY dependency whether you can access the content of an iframe or not, is the same origin policy.
Whenever the content of the parent and (i)frame is loaded from a host with the same hostname then you are OK, if you have the ability to set the document.domain property in the documents loaded.
Caveat: they have to be set in BOTH documents, i.e. NOT only the iframe content.
Then you can easily access content on http://www.example.com from whatever.example.com and vice versa.
(in this example you’d have to set:
document.domain = “example.com”;
in BOTH, the accessing and the accessed document)
Mail (will not be published) (required)
Bits And Pix is proudly powered by
and Comments (RSS).