¡@

Home 

2014/10/16 ¤W¤È 12:06:27

jquery Programming Glossary: postcomplete

Progress bar with PHP & Ajax

http://stackoverflow.com/questions/9311986/progress-bar-with-php-ajax

the initail POST request is complete so we can easily know when to stop polling the server for progress updates var postComplete false var ask function var time new Date .getTime .ajax type 'get' url ' url to progress' ' time ' time success function.. new Date .getTime .ajax type 'get' url ' url to progress' ' time ' time success function data #progress .html data if postComplete setTimeout ask 500 error function We need an error handler as well to ensure another attempt gets scheduled if postComplete.. setTimeout ask 500 error function We need an error handler as well to ensure another attempt gets scheduled if postComplete setTimeout ask 500 #test .click function Since you only ever call post once you don't need a seperate function. You can..