WebBased Vector 2D Graphics

Robin Becker robin at reportlab.com
Fri Oct 5 13:41:20 CEST 2007


Diez B. Roggisch wrote:
>  cjt22 at bath.ac.uk wrote:
> 
.......
> 
> You certainly need to get on speed with webdevelopment. Otherwise you will
> fail miserably.
> 
> There are several options here:
> 
>  - rendering a server-side image, deliver that embedded in a html-page
> 
>  - render using html tags like DIV and the like, which allow for positioned
> colored rectangles and text, in pixel coordinates
> 
>  - canvas tag, to render 2D-drawing-commands
> 
>  - embedded SVG
> 
> All that can be enriched with AJAX to have that fancy
> realtime-update-thingy.
> 
> Diez

simple rectangles are pretty easy though. I did a progress bar here
http://www.jessikat.plus.com/pbar.html with a bit of javascript.

The other side of the information usually involves ajax call backs to determine 
how much of the job has been done etc etc. I seem to remember doing that for a 
project a while back. As I recall we had a cgi script that did

action "start" start off a long running job that detached itself from the web 
server so the response could be made short

action "query" find out from an output file how much of the job has been done.

A javascript timeout periodically performed the query request and used the 
response to update the ticker.
-- 
Robin Becker




More information about the Python-list mailing list