hi hans,

yes it is asynchronous. the way to call the alert from within 
parseResponse is the way to do it (at least i do). you could also take a 
look at the function addXML() described at 
<http://www.carto.net/papers/svg/samples/get_parse.shtml>, doing the 
same stuff.

having done a lot of multiple getURL i didn't note any problems. if you 
need to ensure the presence of any parsed stuff before going on, you can 
do it after the appendChild(), appendChild() executes without noticable 
delay.

andr�

-- 
___________________________________________________________________
andre m. winter,
<http://www.vectoreal.com/>          SVG consulting and development
<http://www.carto.net/>          online cartography focusing on SVG
<http://www.carto.at/>     print and online touristic map solutions 




Hans M. Rupp wrote:

>Hallo!
>
>Is getURL working asynchronously?
>
>function getCars(evt) {
>     getURL('http://localhost:8080/svg/Positions.jsp', parseResponse);
>     alert("Cars " + printCars(cars));
>  }
>
>parseResponse is a method which populates the cars Array.
>the alert shows me an empty Array
>however if I call the alert from within the parseResponse function it
>shows the expected result.
>
>If it works asychronously how can I synchronize?
>
>Thanks,
>
>Hans
>
>
>
>
>
>-----
>To unsubscribe send a message to: [EMAIL PROTECTED]
>-or-
>visit http://groups.yahoo.com/group/svg-developers and click "edit my 
>membership"
>---- 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>  
>




-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to