once again, i have to answer the question myself!
at first: would anyone PLEASE write an guide for using the
jsonprequestbuilder!!!! it´s damn annoing the find out everything by
try and error.

about my problem:
the name of the callback method for the jsonp request changes whith
every request.
when you do the first request the name is: __gwt_jsonp__.I0.onSuccess
for the second request: __gwt_jsonp__.I1.onSuccess
for the third: __gwt_jsonp__.I2.onSuccess
...

that definetly make sense, BUT is nowhere noted in the
documentation!!!!!
and - belive it or not - you can see this little change from one
request to another very hard when you look at a couple of requests.


On 21 Jan., 19:32, "[email protected]" <[email protected]>
wrote:
> at first i thought i had the same problem. my jsonp requests always
> timed out. but then i looked at the jsonp examples from the google
> code pages and found something.
> nowhere in the f***** tutorials is described how the answer of such an
> jsonp request should look like. what i thought was it has to be an
> JSON Strin lik:
>
> { JSONData }
>
> but it looks like, that causes an jasvascript error which is not
> visible in the browser. the returned string must be javascript code
> that could be called via the eval function
> example:
>
> __gwt_jsonp__.I0.onSuccess({JSONData});
>
> now the first call works fine. but i have another issue. i use a
> server side cometservlet, keeping the connection open until i have a
> message to return.
> that works fine, i can see the answer for the request in firebug, but
> json didn´t understand the delayed return.
>
> any suggestions?

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