Link url="/JSONServlet" give just text "{'data':'test'}" But I change code: @Override public void onResponseReceived(Request request, Response response) { Window.alert(response.getStatusCode() + " " +response.getStatusText() + " " + response.getText()); } and now I have exception ERROR: Uncaught exception escaped. com.google.gwt.core.client.JavaScriptException: (NS_ERROR_NOT_AVAILABLE): Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText] QueryInterface: function QueryInterface() { [native code] } result: 2147746065 filename: http://127.0.0.1:8888 lineNumber: 98 columnNumber: 0 inner: null data: null initialize: function initialize() { [native code] } What is problem?
On Dec 23, 5:36 pm, Thomas Broyer <t.bro...@gmail.com> wrote: > On Wednesday, December 22, 2010 2:46:36 PM UTC+1, Petr Arsentev wrote: > > > String url = "http://localhost:8080/JSONServlet"; > > RequestBuilder rb = new RequestBuilder(RequestBuilder.GET, > > url); > > Same Origin Policy ? > > What does url="/JSONServlet" give ? > > Just in case, > seehttp://code.google.com/webtoolkit/doc/latest/FAQ_Server.html#What_is_... > andhttp://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebu... -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.