Whoa there. Synchronous AJAX calls? You're locking up the browser when you
do that. What if your server is slow to respond?
 
If it's just a coding convenience, don't do it!
 
-Mike


  _____  

From: Jimmy Glass

By default, I have set all AJAX requests to syncronous as I like to have the
.getJSON functions inline. However, occasionally... I need to send a
.getJSON request asynchronously. I understand that this is a wrapper
function for the .ajax method. Two solutions that came to mind... Use the
ajax function, or set my global ajax settings to asynchronous prior to the
request and reset it to synchronous after the request. Neither sounds very
pretty. :-)

Can I send the AJAX options to .getJSON?


Reply via email to