I don't have onSucces method, I have something like this:
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.)
}
@Override
public void onResponseReceived(Request request, Response response)
{
if (200 == response.getStatusCode()) {
parseStatusesResponse(response.getText());
} else {
// Handle the error. Can get the status text from
response.getStatusText()
}
}
});
In parseStatusesResponse I have my trouble.
Do I have to have onSucces method?
P.S. But I think that I understood my issue, and thanks Sripathi for
example with bear:)
On Dec 28, 2:50 pm, Ian Bambury <[email protected]> wrote:
> You have a method with the Window.alert("anything") in it.
>
> Where do you call that from?
>
> Is that called from the onSuccess method? Or from the sendRequest method?
>
> Need to see the relevant code, really, but I suspect you call it after the
> sendRequest and not via the onSuccess().
>
> Ian
>
> http://examples.roughian.com
--
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.