Just to make this thread a bit longer tonight:
After all I tried the onreadystate things again. And I'm quite not sure, 
what "onreadystate=loaded" finally tells me.

During the call to the server, onreadystate fires with "loading" and 
"loaded". In the JSONP callback I set a flag, when the object has been 
returned from the server. So if I use a wrong or non existing URL in the 
src attribute, the onreadystate comes with the same states, but finds 
the flag to be false in "loaded" state. So what have I earned from this? 
I still have to renew my claim: onreadystate just reflects the state of 
the loading/execution of the script tag in the browser and does nothing 
say about the progress or even the results of a server side execution.

"Non existent JS files" - there is no such a thing in my scenario. There 
is an ASPX file and a web app behind on a server, the server responds in 
any case (except she's dead).

Confused...

bratliff schrieb:
>> I see two possible solution:
>> a) a timer and
>> b) event handling with onreadystatechange/onload/onerror.
>>
>> bratcliff said:
>>
>>     
>>> It can be done with event handlers.  For Internet Explorer, use
>>> "onreadystatechange".  For Firefox & others, use "onload" / "onerror".
>>>       
>> What I am really looking for is a solution that will work for all
>> browsers for which GBrowserIsCompatible() is true. Does anyone happen
>> to know if I can rely on using onreadystatechange for IE and onload/
>> onerror for FF and *all* others?
>>     
>
> I have tested IE and FF successfully for non-existant JS files (see
> previous post).  I do not have Opera or Safari installed.  In general,
> all browsers except Internet Explorer follow the same standards.  The
> event handlers are fairly trivial.  For simultaneous asynchronous
> requests, it is nice to be able to distinguish which JS file failed.
> A timer is still useful to catch the "no response" case.
>
>
> >
>   

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

Reply via email to