In development mode I can access the xml file I want to read within
the GWT application - everything ok so far.
When I compile the app and call it from the file system, this was
working in v1.7.1, but now I get an SOP error(!)
How can I get around this?
public String xmlfile= "../xml_with_content.xml";
String xml = GWT.getModuleBaseURL() + xmlfile;
RequestBuilder requestBuilder = new
RequestBuilder(RequestBuilder.GET,xml);
try {
requestBuilder.sendRequest(null, new RequestCallback() {
public void onError(Request request, Throwable exception) {
requestFailed(exception);
}
public void onResponseReceived(Request request, Response
response) {
loadXML(response.getText());
}
});
} catch (RequestException ex) {
requestFailed(ex);
}
--
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.