progress bar while waiting for server

前端 未结 4 761
被撕碎了的回忆
被撕碎了的回忆 2021-01-25 14:52

Some operations are time costly and it takes long time while waiting them to finish. Sometimes timeout occurs. I want to use a real time progress bar, so I want to show the sta

4条回答
  •  终归单人心
    2021-01-25 15:21

    If you are using an javascript and ajax, you can call / initiate the process(in server) from java script using an ajax call.You can show the user a loading image till you get a response back from the server. www.ajaxload.info allows you to generate your own loading images. have a look @ it. if you use jquery ,things would be much easier.

    Check these links

    http://docs.jquery.com/Ajax/load

    http://www.shawngo.com/gafyd/index.html

    Cheers

提交回复
热议问题