It's usually that you are sending a request and expecting to be able to use
the results immediately in the same code block. You need to print your stuff
from the callback onSuccess() method. Putting an alert in there gives the
call time to complete.
Ian

http://examples.roughian.com


2009/8/20 Luke <[email protected]>

>
> I wouldn't normally ask things like this but I have something weird
> going on that I cannot figure out.
>
> I have a class that I am using to get information from the server.
> The JSONArray that is returned by calling the function
> ServerConnector.getProjectArray() is then evaluated.  The function
> that calls this function is supposed to print the information to the
> screen.  The output is nothing.
>
> Here is where it gets weird, if I add an window.alert("some string");
> before return jsonArray; then the page will print fine.  With out the
> alert it will not print.  I am completely confused.  Sorry for asking
> about a bug but I don't know if it is something with me or not.
> >
>

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