Hey all,
I'm working on a simple GWT application, but for some reason I cannot
get my compiled version to function in FireFox or Opera. It works
fine in IE/Hosted mode, meaning that it fetches the XML and displays
what it needs to on the screen. In FireFox and Opera, the
onResponseRecieved never gets fired, albeit the URL is functional if I
paste it in a browser. I'm done some searching, and the only thing
that came up was IE's interpretation vs. FireFox/Opera of same domain,
but since it is localhost talking to localhost, it shouldn't matter?
I'm assuming it has to be something with either the way the url is
handled in the RequestBuilder or something I'm missing.
I'm sure this is something trivial, and I would be most appreciative
if someone could point me in the right direction. Here is the code
I'm working with - thanks again:
public static void getXml(String input, final VerticalPanel
nodePanel) {
String url = "http://localhost/test.xml";
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
URL.encode(url));
try {
Request request = builder.sendRequest(null, new
RequestCallback() {
public void onError(Request request, Throwable
exception) {
System.out.println("onError triggered.");
}
public void onResponseReceived(Request request,
Response response)
{
Nodes[] toRender =
parseString(response.getText());
renderView(toRender, nodePanel);
}
});
} catch (RequestException e) {
e.printStackTrace();
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---