On 3/20/06, Michele Cella <[EMAIL PROTECTED]> wrote: > If I'm getting your words in the right way you're saying that without a > JS way of dynamically adding fields this is almost useless? right? > well, that's also my opinion (really) anyway I've added support for > this since we will need it in both case, what we are lacking in widgets > ATM is a way of reusing our templates for dynamically adding a field > using DOM or innerHTML, any idea? I'm not a JS guru. :-(
This is a nontrivial problem to solve. If we provide a mechanism for a widget to directly respond to requests (like the widgetdescriptions can), then it may be possible to use Ajax to request another row directly from the widgets. Certainly the validation part of repeating widgets is useful, and there *may* be use cases where displaying some number of widget sets is useful. (You could make a non-Ajax version that redisplays the entire form when you want to add a row...) Kevin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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-trunk -~----------~----~----~----~------~----~------~--~---
