On Sunday, June 3, 2012 5:25:38 PM UTC+2, Kuenga wrote:
>
> HI,
>
> I have created a web server using NodeJS. At the server side, i have
> string of numbers (2,3,4). I want to convert it to Array object at the
> GWT object. I was not able to do.
>
> So was trying to display simple text message at GWT using the following 
> code:
>
> Window.alert("Connecting to server");
>                String Strurl = "http://127.0.0.1:1337/";;
>                RequestBuilder builder = new RequestBuilder(RequestBuilder.
> GET,
> URL.encode(Strurl));
>

Unless you run your GWT app from http://127.0.0.1:1337/ (which I doubt) or 
your NodeJS server at that URL sends back an appropriate 
Access-Control-Allow-Origin response header (see http://www.w3.org/TR/cors/ ), 
then onError will be called (and in browsers that do not support CORS, such 
as Internet Explorer, RequestBuilder#sendRequest() will throw)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/_DnO8koil-AJ.
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.

Reply via email to