Are there progress update events in jQuery ajax?

前端 未结 6 780
北海茫月
北海茫月 2020-12-31 16:22

i have long running task that gets called using jquery ajax. i am using the block ui plugin to show \"loading\". is there anyway i can send progress messages back to the

6条回答
  •  臣服心动
    2020-12-31 16:46

    I only recently became aware of a project that does ajax "push". You might want to check it out:

    http://www.ape-project.org/

    As far as I know there are a few other projects out there doing similar things, this is the truest to: "send progress messages back to the client" where the other solution requires a request to poll for progress (still a very legitimate and good solution).

提交回复
热议问题