On Mar 7, 2006, at 4:36 PM, Karl Guertin wrote: > When I'm doing this sort of thing, I tend to do it the innerHTML way. > I'm pretty sure it'd be possible to generate MochiKit.DOM code from an > arbitrary template as a Kid serializer. I've thought about doing it > several times but then I decide it's not worth the trouble.
This is exactly what I have done just now, and it seems to work quite well! Once I finish going through my project and converting everything into my own widgets, this should significantly reduce duplication, lines of code, and will also make AJAXifying the application a lot easier. I do think that there would be some value to kid serializing into MochiKit JavaScript, in that you have a lot more control over where in the DOM you can place the returned widget data. Of course, it is a little crazy, so I am not sure its a good idea or not :) -- 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 -~----------~----~----~----~------~----~------~--~---

