javascript - General Purpose Progressbar in Django - Stack Overflow

I want to make a little web-frontend for copying (rsync) and encoding (ffmpeg) files for my Server usin

I want to make a little web-frontend for copying (rsync) and encoding (ffmpeg) files for my Server using Django.
And I want to keep track of the progress of the processes.

I saw a few jquery-scripts, but they are designed to be used with uploads, and I don't know enough javascript to modify these scripts for my needs.
I want to write a script that retrieves the task status from a textfile and outputs a progressbar, but I've got no idea where to start.

Does somebody know a good tutorial to start with?

And sorry for my poor english.

I want to make a little web-frontend for copying (rsync) and encoding (ffmpeg) files for my Server using Django.
And I want to keep track of the progress of the processes.

I saw a few jquery-scripts, but they are designed to be used with uploads, and I don't know enough javascript to modify these scripts for my needs.
I want to write a script that retrieves the task status from a textfile and outputs a progressbar, but I've got no idea where to start.

Does somebody know a good tutorial to start with?

And sorry for my poor english.

Share Improve this question asked Nov 20, 2009 at 12:38 x0rgx0rg 1172 silver badges6 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 9

See the code here http://www.djangosnippets/snippets/679/, it says "upload progress for multipart forms" but there is nothing specific to forms, you can use it anywhere with few tweaks.

General concept is:

  1. Write a web-service which can return data(e.g. JSON) about the progress.
  2. On client side use JavaScript to call progress API periodically use that info to update some client side element e.g. a text, width of an image, color of some div etc.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744286077a4566803.html

相关推荐

  • javascript - General Purpose Progressbar in Django - Stack Overflow

    I want to make a little web-frontend for copying (rsync) and encoding (ffmpeg) files for my Server usin

    7天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信