Re: How to send a query to the browser from time to time?

2005-07-20 Thread Admin
On Tue, 19 Jul 2005 19:43:25 -0300, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: otherwise, my only suggestion is to use another protocol instead of http. What do you suggest? -- Thanks, Admin. Want to buy me a book? http://tinyurl.com/78xzb :) --

How to send a query to the browser from time to time?

2005-07-19 Thread Admin
I am creating a chat application like Messenger for the web (using the browser) and I'm wondering if there is a way to receive new messages from time to time from the server other than refreshing the page each 5 sec. If there were a way to have the server-side application send new messages

Re: How to send a query to the browser from time to time?

2005-07-19 Thread Simon Dahlbacka
Short answer: Not using HTTP. However, you can use something like AJAX to just load new data from time to time and not the entire page. Or you might be able to keep the connection alive and occationally send stuff to the client using chunked transfer. I'd go for the ajax route if you don't need

Re: How to send a query to the browser from time to time?

2005-07-19 Thread gene tani
not clear if you're asking about XMLHttpRequest http://www.modernmethod.com/sajax/ http://nevow.com/Nevow2004Tutorial.html#livepage or custom browser object: http://wwwsearch.sourceforge.net/mechanize/ -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send a query to the browser from time to time?

2005-07-19 Thread phr
Admin [EMAIL PROTECTED] writes: If there were a way to have the server-side application send new messages to the browser this would be awesome because it would save dramatically on bandwidth. The application would consume bandwidth only when there are new messages. There would be no

Re: How to send a query to the browser from time to time?

2005-07-19 Thread Admin
On Tue, 19 Jul 2005 10:03:48 -0300, Simon Dahlbacka [EMAIL PROTECTED] wrote: I'd go for the ajax route if you don't need to support old browsers. I already use AJAX on several applications, but I don't want to use it in this one because it would poll the server a lot and it may bring the

Re: How to send a query to the browser from time to time?

2005-07-19 Thread [EMAIL PROTECTED]
rewrite the server to bake a /lastmsg/ folder with the last message in it. otherwise, my only suggestion is to use another protocol instead of http. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send a query to the browser from time to time?

2005-07-19 Thread Leif K-Brooks
Admin wrote: I am creating a chat application like Messenger for the web (using the browser) and I'm wondering if there is a way to receive new messages from time to time from the server other than refreshing the page each 5 sec. Here's a pretty basic example I wrote a while ago using

Re: How to send a query to the browser from time to time?

2005-07-19 Thread Mike Meyer
Simon Dahlbacka [EMAIL PROTECTED] writes: Short answer: Not using HTTP. However, you can use something like AJAX to just load new data from time to time and not the entire page. AJAX is overkill for this. If you just want to automatically refresh the page automatically, you can use a meta