Problem w/ InPlaceEditor

0 views
Skip to first unread message

Zack

unread,
Oct 30, 2006, 8:10:58 PM10/30/06
to Ruby on Rails: Spinoffs
Greetings, I am a bit of a newbie to the scriptaculous library and am
trying to use the InPlaceEditor. It works fine the first time, I click
the text it shows up and I can edit it. But when I click on it a second
time (after the ajax call completes successfully and my new text is
displayed) I get an empty text box.

I'm using scriptaculous 1.6.4, and this is my code:

<p id="item-tag">tag</p>
<script type="text/javascript">
new Ajax.InPlaceEditor('item-tag', 'updateTags/1');
</script>

And on the server side, I'm performing a database update and displaying
the tags that were sent via ajax. This works fine.

I've searched through the limited documentation and tried various
techniques to know avail. Please help!

Thanks,

Reply all
Reply to author
Forward
0 new messages