Monday, July 20th, 2009
Actions: RSS 2.0 feed.
Both comments and pings are currently closed.
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)
BitsAndPix is proudly powered by
and Comments (RSS).