Thanks for your reply Ross,

i didn`t think of that. By the way i`m using phpmyadmin /sql as
database  BUT  when there`s a hit for that name i have to place a
marker how do i do that?
My first intention was like

   function searchRestaurant() {
     var name= document.getElementById('name').value;{
     searchRestaurantName(name);
}


funtion seachRestaurantName ()
   var searchUrl = 'phpsqlsearch_genxml.php?name=' + name;
     GDownloadUrl(searchUrl, function(data) {
       var xml = GXml.parse(data);
       var markers = xml.documentElement.getElementsByTagName
('marker');
//searching in the array//
for (var i = 0; i < markers.length; i++) {
  if (markers.length == 0) {
         sidebar.innerHTML = 'No results found.';
         map.setCenter(new GLatLng(40, -100), 4);
         return;
       }
else {
// markersArray.push(marker);
return marker
}

But this doesnt seem to work
can someone please give some direction if i`m on the right track?


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