search for: edit_field

Displaying 1 result from an estimated 1 matches for "edit_field".

2008 Apr 07
5
trying to use Ajax.InPlaceEditor
...e box, etc.) My problem is that after successfully saving the value in the database, the response I get from the server is javascript, and it''s being rendered in the place where the updated value is supposed to be. Here is my view: <b>Color</b><br /> <p id=''edit_field''><%= @box.color %></p> <script type="text/javascript"> new Ajax.InPlaceEditor($(''edit_field''), ''/boxes/1'', { ajaxOptions: {method: ''put''}, callback: function(form, value) { ret...