Creating a Synchronous call using Prototype
Tried to make a Synchronous Ajax call using the Script.aculo.us Library. Damn how do you do it ?
But got a chance to peek into prototype.js. Wow. Javascript can be beautiful.
new Ajax.Request('/foo/bar', {asynchronous:true});
Looking at the code, setting the 'asynchronous' flag to 'false' should do the trick. Unfortunately, this does not seem to work.
new Ajax.Request('/foo/bar', {asynchronous:false});
WierdBut got a chance to peek into prototype.js. Wow. Javascript can be beautiful.