B
Barlymasher
Hi all,
hope you can help. I am having a problem with a script I am running. I
am calling a function to retrieve data from an XML file, and then want
other functions to execute after that function is complete. Instead,
it seems to call the function and continue.
There are three sequential calls here. In the function getPoints()
there is an alert message (for testing purposes at this point, the end
goal is to have it return data). I would expect that entire function
to complete before going on to the next two alerts, however, what I am
seeing is it ends up being last. What do I need to do to make this
stuff go in the proper order?
var text2 = getPoints();
alert("This should be second");
alert('This should be third: ' + text2);
The full file and what is happening can be found here:
http://www.obinge.com/rides/newRoute.html
thanks for any help!
O
hope you can help. I am having a problem with a script I am running. I
am calling a function to retrieve data from an XML file, and then want
other functions to execute after that function is complete. Instead,
it seems to call the function and continue.
There are three sequential calls here. In the function getPoints()
there is an alert message (for testing purposes at this point, the end
goal is to have it return data). I would expect that entire function
to complete before going on to the next two alerts, however, what I am
seeing is it ends up being last. What do I need to do to make this
stuff go in the proper order?
var text2 = getPoints();
alert("This should be second");
alert('This should be third: ' + text2);
The full file and what is happening can be found here:
http://www.obinge.com/rides/newRoute.html
thanks for any help!
O