On 5 November 2010 09:07, Spiderscope <[email protected]> wrote:
> hey. ok so i have a page with an input field where a user can input a
> name.
>
> when they do so it will bring back the postcode for that name and then
> display a marker on a google map in the correct place.
>
> unfortunately some of the names have more than 1 result which means it
> needs to plot more than 1 marker on the map...ive spent a lot of time
> on this but cant figure it out. can someone help me please?
>
> here is the code for my page so far.
>

I can tell that's ASP code. But I've never got on with the way ASP
munges together server-side and client-side functionality.

*I* would do this with AJAX. Have a server-side script which accepts
query parameters and returns XML (or JSON) containing all the results.
http://econym.org.uk/gmap/basic3.htm

Use GDownloadUrl to submit the query to that script and accept the
result to process in its callback function.

The processing in the callback function would simply loop through all
the results returned and plot the markers required. That way it
doesn't matter if you return zero, one or twenty results.

Using AJAX also means that the page doesn't have to be reloaded to get
and show the results.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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