On Sat, 2006-11-11 at 18:40 -0500, Jonathan LaCour wrote: > iain duncan wrote: > > > I think maybe what I want to do should really be done with > > widgets. I'm not quite clear though what the smart way to get a widget > > updated from an ajax call is. > > The WhatWhat Status project (http://cleverdevil.org/whatwhat) does a lot > of AJAX using widgets. Take a look at the code for plenty of examples. > Its actually quite simple, you just perform a render() on your widget, > return the fragment of HTML to the browser in an XMLHttpRequest call, > and then update the page using the innerHTML property.
There seem to be quite a number of ways to do this stuff. Concerning the above: - where and how do you perform a render() on your widget? In the body of the controller method that gets hit by the XMLHttpRequest? - do you return the html fragment raw? ie @expose() if not, how is it done? Thanks Iain --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

