Currently, I\'m working to replace \"alert\'/\"confirm\" with the jquery dialog.
But most of legacy codes is written in some asynchronous way, which make it
Here's some ideas - what you actually want is to block your async event to make it look like sync. Here's some links:
Queuing async calls
Mobl
Narrative JavaScript
Hope this helps you further!!