Hi All! I'm implementing the scriptaculous inplace editor and I have it working except for one small detail:
If I activate the editor, click cancel, activate the editor again I get two inplace editors. cancel those and activate again and I get three. cancel those and activate again and I get four... and on and on and on... What's the trick to this? Here's my code: html: <tr><td onclick='editName(this, id)'>Homer Simpson</td></tr> javascript: function editName(element, id) { new Ajax.InPlaceEditor(element, 'name_inpl_ajax.php', { okText: " Save ", cancelControl: "button", callback: function(form, value) { return 'id=' +id + '&name='+encodeURIComponent(value) } }); } -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsubscr...@googlegroups.com. To post to this group, send email to prototype-scriptaculous@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. For more options, visit https://groups.google.com/groups/opt_out.