[EMAIL PROTECTED] wrote: > Is there a possibility to achieve the same edit in place functionality > as in http://tool-man.org/examples/edit-in-place.html > with TurboGears widgets?
How would you plan on having the widgets communicate changes back? That is the real issue. Taking an existing widget and marking it for edit in place behavior is trivial, just have to add the class "inplace" to your form element. As for handling communications back to TG, that is where things get interesting. I think this is why there are no existing widgets to handle this, as there are simply too many options. Do you send the raw HTML back to turbogears? What about the previous HTML? If not that, then how do you format changes in a way that is intelligible. What about additional information that helps you figure out what a change on the page is related to? Interesting problem, far too many solutions. That said you could put together a widget that automatically handles including the edit in place javascript library pretty easily. With a bit of interesting hacking could get it to re-render its own template as an editable form when it is sent out to the page. That would save at least some of the trouble. Since TinyMCE is also available as a widget it would probably be a snap to hook that up to the whole thing. Then the only tricky part is sorting out backend communications for your specific needs. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

