On Sep 17, 2:27 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Thanks for your help. But I'm baffled as to how to make the changes
> needed - I didn't write this bit of code. I presume the bit of code
> that is the problem is:
>
> How do I need to change this ? (perhaps a cheeky question to ask it
> flat like that!)
Yes, so you'll need to do a bit of work! :-)
GDownloadUrl("./AjaxMountain2.php?userid="+userid,processData);
...
function processData(xmlFileContent) { ... }
GDownloadUrl is asynchronous: it fires a request to the server for
your data, and then when it's returned the function specified is run
with the data returned. In the meantime, the main thread continues
with whatever follows the GDownloadUrl call [if anything].
Or you can use GXml like Mike does in his example, currently at
http://econym.googlepages.com/basic3.htm -- that's probably the least
change from your current code.
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
-~----------~----~----~----~------~----~------~--~---