On Oct 25, 7:04 pm, "Neil.Young" <[EMAIL PROTECTED]> wrote:
> Onclick the form is posted to the server, the server returns JSONP in a
> uninterrupted execution chain. (Query in, result out). But - if
> onreadystatechange="completed" for the script object, the JSONP object
> is not yet present.
Do not return the JS file immediately of server has work to do. The
browser will wait indefinitely. It is asynchrorous.
If the server cannot satisfy the request, return an error code.
Otherwise, return a JS file containing the results. Implicit in the
interaction is a "callback" function in the client to receive a
JavaScript object with the results. I thought it was obvious.
Look at:
www.polyarc.us/geonames
it calls geonames.org to obtain weather information.
Returning a JS file immediately without results defeats the whole
purpose.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---