[Dojo-interest] Dojo cross-domain communications (iframe)
rastrano at gmail.com
Tue Jun 22 10:07:59 EDT 2010
what do you need excactly?
1) cross-domain ajax requests?
2) operating with a real iframe document dom?
for 1) see dojo.io.script and jsonp
for 2) wait html5 and the allow-same-origin attribute in iframes.
(i always thought same origin policy esagerate:
Il 21/06/2010 22:41, Victor Danilchenko ha scritto:
> Hi all,
> I am hoping someone here can help me with what should have been a
> Does Dojo have some facility to support cross-domain communication with
> an iframe-wrapped page? I vaguely seem to recall reading about it
> somewhere in the docs, about Dojo supporting communication via the hash
> fragment, but now I don't seem to be able to find it.
> I have actually rolled my own (it's a really trivial problem, the
> framed page has to send one string to the container page), and then I
> realized that Firefox 3.5 is refusing to permit the container page to
> read the iframe.contentWindow.location attribute (I get the "Permission
> denied to get property Location.hash from" error), even though that's
> been readable forever. I know I have the basic functionality right
> because the hash-fragment setting/polling works when the iframe is local.
> I am hoping Dojo has some workaround in place for that.
> Alternatively, perhaps I am doing something really obviously stupid,
> and someone can set me on the right path? Or at least point to a better
> place to ask?
> Thanks in advance.
More information about the Dojo-interest