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