You can't send a request to a server in one line and expect it to have
completed before you get to the second line.

This will NEVER happen because JS is single-threaded and even if the request
HAS returned, the callback will be queued to run later.

If you order something from an internet web site, it won't be there
immediately after you order it. You have to wait for it to be sent.

The 'A' in Ajax is for 'asynchronous'.

If you want to do something with the data you requested, you have to do it
in the callback, or it won't be there.

If you have a button which refreshes a table, get the button to make the
request, and pass the table to the callback. Get the callback to update the
table.

Ian

http://examples.roughian.com


2009/3/19 [email protected] <[email protected]>

>
> println has to be in another java file, so i cant put it in
> GetData.java
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to