It's OK. The alternative methods are: 2. Use GDownloadUrl(), which does the same thing but saves you a lot of typing.
3. Write your own code to check the browser type and use the underlying ActiveX call or XMLHttpRequest call. 4. Use a utility library that contains browser independent AJAX functions, such as jQuery. There's no particular reason to choose one of these methods over another. They all eventually end up performing exactly the same low level functions at the same speed, so use whatever you feel most comfortable with. 2 and 4 have the advantage of less typing, and therefore fewer places to make mistakes. 3 and 4 have the advantage that you can use them on pages where you don't have Maps v2 loaded. That might be significant if you ever decide to switch to API v3, which will never have its own AJAX functions. 4 has the disadvantage of requiring extra code to be loaded. -- Mike Williams http://econym.org.uk/gmap -- 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.
