A while back I put a few files on the wiki showed my solution for using ajax (javascript with XMLHttpRequest) with webware. However, there were a couple of deficiencies in that code. First, my solution did not allow for the server to send data (commands) to the client without the client first initiating a request to the server. Second, some long-running requests could time out (this is based on server configuration). I have just updated the wiki pages with a new version of my python and javascript code that overcomes these problems.

The good news is that my changes in no way should affect any code using my old way of doing things. It should simply be a drop-in replacement. The bad news is that, to behave well, the new code requires webware 0.9 (is this really a bad thing anyway?).

As always, please let me know of any improvements you can make or questions you may have.

http://wiki.w4py.org/ajax_in_webware.html


--John


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to