Thanks for the heads up! On Jan 20, 10:09 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > The way the web normally works is that requests are initiated by the > client, not by the server. > > To have the server trigger and action in the client without some kind > of timed keepalive signal from the client requires having a web server > embedded in the javascript of the page or using something called Comet > (http://en.wikipedia.org/wiki/Comet_%28programming%29) > > None of these solutions is too easy. think a JS keepalive is the > simpler solution. > > On Jan 20, 6:09 am, Stefan Novak <stefan.louis.no...@gmail.com> wrote: > > > Hi Massimo, > > > First off, thanks for your support (and development) towards web2py. > > > I'm currently using web2py to display data generated in a desktop > > application which populates the database for the application with scientific > > data. However, I would like to have the data automatically refreshed on the > > page for any given user - not through a repeated call to an AJAX method that > > is linked to a timer, but from an RPC call directly from the application. > > This way when the application has completed it's update of the database, the > > web application can be sure that the user is seeing the most up-to-date data > > that's available. (I'm pretty sure that there's another way to accomplish > > this - if so I'd appreciate any insight!) > > > Hope that clears things up. > > > Thanks! > > > On Tue, Jan 19, 2010 at 11:53 PM, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > Thanks Stefan, > > > > if ajax, why XMLRPC and not JSONRPC? Anyway you are you asking from > > > something like this? > > > > @service.jsonrpc > > > @service.xmlrpc > > > def feed(): > > > return db(db.yourtable.id>0).select().as_list() > > > > Massimo > > > > On Jan 19, 8:47 pm, Stefan <stefan.louis.no...@gmail.com> wrote: > > > > Hi all, > > > > > I'm relatively new to the Web2py framework and have been spending the > > > > last week or so playing around with it. So far, I'm really impressed > > > > at the level of usability and portability that the framework provides. > > > > > One of the proof-of-concept projects I'm working on is passing some > > > > data back and forth between an external application and my Web2py web > > > > application via the SQLite database. When my external application > > > > updates the database, I want a user's display in Web2py to be > > > > refreshed via AJAX functionality through an RPC call. (I've read > > > > through the tutorials on how to utilize AJAX calls and have that > > > > working fine.) > > > > > However, is there a way to sync up a XMLRPC call with data that's > > > > being displayed in the application for a pseudo-realtime feed? > > > > > Thanks for your support! > > > > > -Stefan > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "web2py-users" group. > > > To post to this group, send email to web...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/web2py?hl=en. > > > -- > > Stefan Novak
-- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.