The simplest approach would probably be ajax short polling (i.e., an ajax request every n seconds). If the orders page is just an administrative page with a small number of simultaneous users, that's probably fine. If that's not adequate, you could look into comet type solutions. web2py includes a WebSockets implementation in /gluon/contrib/comet_messaging.py ( http://code.google.com/p/web2py/source/browse/gluon/contrib/comet_messaging.py). That doesn't work in all browsers, but it can be adapted to fall back to other methods using Socket.IO -- see http://greg.thehellings.com/2011/04/web2py-websockets-and-socket-io-part-i-basic-display/ . Anthony
On Thursday, May 19, 2011 9:29:30 AM UTC-4, David J wrote: > I was wondering how can I PUSH updates to a page using Ajax. > > On our orders page as orders come in I want the page to automatically be > updated; > > Currently I just refresh the page every N seconds; but I thought it > could be made more efficient. > > Like some sort of event notification system. > > Thanks in advance for any advice on this. > > >

