Hi
,
At the client side i have the following

Window.alert("Connecting to server");
String Strurl = "http://127.0.0.1:1337/";;
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, 
URL.encode(Strurl));
try {
  Request request = builder.sendRequest(null, new RequestCallback() {
    public void onError(Request request, Throwable exception) {
        // Couldn't connect to server (could be timeout, SOP violation, 
etc.)     
    }
public void onResponseReceived(Request request, Response response) {
      if (200 == response.getStatusCode()) {
          // Process the response in response.getText()
      Window.alert(response.getText());
      }
      else {
        // Handle the error.  Can get the status text from 
response.getStatusText()
      }
      
    }       
  });
  Window.alert(request.toString());
} catch (RequestException e) {
  
}

I have the following Test.js

http.createServer(function (req, res) {
         response.writeHead(200, {"Content-Type": "text/plain"});  
        res.write("From node js");
}).listen(1337, '127.0.0.1');


I run the Test.js, using node.exe to start the server. I am able to view 
'From Node.js' on the browser. 

But when i access the same address from GWT, i donot see any thing.

How to i get the text 'From Node.js'  from GWT. 

Basically i have string of number in the form (2,3,4,5) at the node.js 
server side but i want this data to be populated in an array at GWT side.

How to do it ?

Thanks

-- 
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/-/nU-Xi3IW6eoJ.
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