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. Good luck - -- Jonathan LaCour http://cleverdevil.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

