View Single Post
Posts: 31 | Thanked: 38 times | Joined on Dec 2010
#61
Originally Posted by Blaizzen View Post
wow very nice! I've got to try this. Thanks heaps for the idea and implementing it Just wondering though how do you call it from javascript? Since I've never played with servers or have much we experience at all (i've just been a bit lucky so far with this )

I've actually implemented the flash idea I said before but your idea is heaps better, especially since the maneuvers also contain data such as street names, hence we can eventually get spoken streets and directions


for people interested, this is what is possible and soon to be much better once the server is set up
http://www.youtube.com/watch?v=CC5vSv1dppc
....
Oh wow, didn't realise that you actually got the flash approach working - maybe the python server is not needed then. Anyhow, usually I use jquery to do the http calls, but a quick google for 'xmlhttprequest firefox' revealed:

https://developer.mozilla.org/en/using_xmlhttprequest

which would mean something like:

var req = new XMLHttpRequest();
req.open('GET', 'http://localhost:9999/turn_right', true);
req.send(null);

(to make an asynchronous request, e.g. the javascript continues and doesn't care about the meaningless output from the server)

Cheers,

Joerg
 

The Following 2 Users Say Thank You to jhb For This Useful Post: