XMPP to a webpage is going to add enormous code overhead for absolutely zero
gain.

The way I would do it would be to choose you Ajax library, set up a repeated
call from the webpage to your TG app to occur every X number of seconds, and
just have the TG app return the data you want. From there, the updater on
the web page would just update whatever field as often as it gets new data.

On Sat, Feb 13, 2010 at 5:49 AM, Michael Grant <[email protected]>wrote:

> I'm looking for a way to build a web app back ended to a database like
> turbogears is good at but I'm looking for an easy way for some of the
> fields on the web page to be updated in real-time like a google docs
> document or a google wave.  Perhaps via XMPP?
>
> For example, some things I want to do in real-time:
>
> - display results of a query (for example how many products are left
> in stock)
> - show new records in an sql query (for example new products)
> - text field like an embedded google doc which updates on multiple
> screens at the same time (this is a "two-way" update)
> - graph results of a query (like snmp, like mrtg)
>
> I know I can create a app with static display of this stuff.  But what
> I'm hoping to see is like just a flag to my field in the model or
> perhaps view (or subclassing something) which causes all the
> underlying stuff to keep it displayed in real time to just happen
> without me having to write a lot of code to do this.  I can't be the
> only one out there who would want this sort of thing.
>
> I see that there are some libraries out there like strophe but I
> haven't managed to find anyone who's bound anything up yet with
> turbogears or anything similar.  I'm not even sure if XMPP is the
> right way to do this.
>
> Michael Grant
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<turbogears%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/turbogears?hl=en.
>
>


-- 
Michael J. Pedersen
My IM IDs: Jabber/[email protected], ICQ/103345809, AIM/pedermj022171
         Yahoo/pedermj2002, MSN/[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to