I\'m working with a JavaScript API where most of the functions are asynchronous. The API is the WebKit JavaScript Database API which is a binding to a subset of functionali
if you are using jQuery Ajax : $.ajax()
you can set the attribute of asynch to false , and then you will have a synch ajax request to the server.