[Twisted-web] Using Twisted Web for browser-based control
mithrandi-twisted-web at mithrandi.za.net
Sat Dec 17 07:03:55 MST 2005
* Drake Smith <drakesmith at adelphia.net> [2005-12-17 08:08:40 -0500]:
> I use Twisted Web on an embedded Linux device to provide browser-based
> configuration & control. The browser displays a bar graph of a parameter
> that is quickly changing on the embedded device (peak audio level). In
> order to provide a reasonable feedback to the user, the browser connects to
> the Twisted Web CGI server once a second via XMLHTTPRequest to obtain an
> updated bar graph level, then Twisted Web dutifully closes the connection.
> Is there a way to achieve the same thing without opening & closing a
> connection each time?
Yes. The easiest way would be to use something like nevow.athena, which
takes care of the XHR connection for you, allowing you to concentrate on
the higher-level communication between browser and server.
mithrandi, i Ainil en-Balandor, a faer Ambar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://twistedmatrix.com/pipermail/twisted-web/attachments/20051217/fb15d7aa/attachment.pgp
More information about the Twisted-web