¡@

Home 

2014/10/16 ¤W¤È 12:10:38

jquery Programming Glossary: xhr_data

jQuery AJAX polling for JSON response, handling based on AJAX result or JSON content

http://stackoverflow.com/questions/1406580/jquery-ajax-polling-for-json-response-handling-based-on-ajax-result-or-json-con

the AJAX request function ajax_request .ajax url JSON_URL JSON_URL is a global variable dataType 'json' error function xhr_data terminate the script success function xhr_data if xhr_data.status 'pending' continue polling else success xhr_data contentType.. JSON_URL JSON_URL is a global variable dataType 'json' error function xhr_data terminate the script success function xhr_data if xhr_data.status 'pending' continue polling else success xhr_data contentType 'application json' However this function.. is a global variable dataType 'json' error function xhr_data terminate the script success function xhr_data if xhr_data.status 'pending' continue polling else success xhr_data contentType 'application json' However this function currently..