On Aug 24, 8:42 pm, Marc <[email protected]> wrote:
> I'm performing a search query to display the POI on a normal HTML +
> CSS page.

So: you're already retrieving the data to build what is effectively a
static page. Presumably that's done with a PHP (or other server-side)
script getting the data from your database and then you loop through
the result set and output the values in the HTML.

Just do the same with your Javascript data. Re-use your result set and
write the data out in the <script> portion of the page.

A more usual method would be to use something like GDownloadUrl() and
get all the data from the server at once and process it client-side,
adding the points to the map and populating a sidebar.

Both methods only involve one database query and one transfer of data
from the server to the client (in a static page in the first method;
as an XML file for example in the second). The principal difference is
that the second, dynamic, method is less friendly to screen-reading
software and generally produces a less accessible site.

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