Thanks for the answer Ross, I've looked at that page before.

Still, there is my problem:

I'm performing a search query to display the POI on a normal HTML +
CSS page. I would like to integrate the google maps input (lon / lat)
with that first query. The solution you gave me forces me to perform a
second query which is identical to the first one, only gets the lon /
lat data as well. I was just thinking performance wise :-) And, I have
a lot of variables as input to the first query, so for the second
query I have to make sure those same variables make it into the XML
generator script (mydate.php?var1=a&var2=3 etc etc).

If there is no other solution I'll just have to deal with the one you
gave me.


Thanks,

Marc


On 24 aug, 20:52, Rossko <[email protected]> wrote:
> > I was thinking that I maybe could generate an physical XML file (name
> > it with a random generated hash, like:
> > jk2hjk234238423jkh23423j4h23.xml) while performing the query on the
> > DB. Call that XML file in the Google Maps Javascript code and at the
> > end of the page delete that physical XML file again.
>
> Nooo, don't do that.   When the client end does something like
> GDownloadUrl(mydata.php) it has no idea what mydata.php actually is.
> It need not be an actual file of results.
> What many people do is write a script that is called mydata.php.
> The script does the searching and does something like
>     echo  "<xmldata>heres the data </xmldata>";
> When this arrives at the client, it has no idea it isn't a real file,
> and that it was created dynamically.  It's just data.
>
> That's oversimplified, but from that starter, review the classic
> example -
>    http://code.google.com/apis/maps/articles/phpsqlsearch.html
> and it should al click into place.
>
> cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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