On 26 May 2010 13:09, arshad <[email protected]> wrote: > > i make the alerts like this: > > alert("Please Take this Bus > "+str1Array[0]+","+str1Array[1]+","+str1Array[2]); > > //alert("Please Take this Bus "+str1Array[0].join(", ")); > > //alert("Please Take this Bus "+resultArray[0].join(", ")); > > > only the first way pops out an alert. the rest don't do anything. > to give a clear picture of what i want;
.join is a method of Array, not String, so trying to "join" a single array element won't do anything useful, if it doesn't actually cause an error. I had thought you were constucting your resultArray to hold the results you wanted displayed. That would certainly seem the best course of action. However, how you organise your data and construct the results is up to you. -- 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.
