Wasn't it Ralph Ames who wrote: > >>The link is: http://www.exploiter.org/darkfall/searchtest > >>I added alert(gmarkers); > >If it's an array you have to ask for which bit of the array. > >alert(gmarkers[0]);
Javascript Array() objects have a .toString() Method that calls the .toString() methods of all the elements of the array and lists them separated by commas. In this case, the array is created effectively like this: gmarkers = []; gmarkers[84] = new GMarker(...); gmarkers[85] = new GMarker(...); gmarkers[86] = new GMarker(...); GMarker() doesn't have a .toString() Method, so they appear as "[object Object]", and all the array elements below 84 appear as "". -- 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 -~----------~----~----~----~------~----~------~--~---
