PDA

View Full Version : document.domain problem in firefox when using gxt + gwt-comet-adapter



sempervivo
15 Dec 2010, 1:47 AM
Hi everybody,

I integrated streamhub with gxt and it works flawlesly in google chrome, but when I use firefox or ie I get "Access denied" eror because there are cross domain calls between the push server script and the ext-gwt script. I read I that I should use the settings document.domain on both of the scripts but it doesn't work. Has anyone used gwt-comet-adapter and how did you solve this problem ? Thank you.

George

sempervivo
15 Dec 2010, 2:09 AM
In case anybody is interested, the answer is adding the following line to the gwt.xml module:
<add-linker name="xs"/>

sven
15 Dec 2010, 4:58 AM
You should also take a look at the desciption for the xs. As with any other linker, there are positive and negative parts.

sempervivo
15 Dec 2010, 5:10 AM
I already noticed that :)
Do you have other suggestions ?

sven
15 Dec 2010, 5:20 AM
No, if you need cross domain access, thats the only way. I just wanted to point out that you could have problems you have not thought about before.

sempervivo
15 Dec 2010, 5:33 AM
I already have them. Isn't that wonderful ? :)