greghauptmann
2008-Apr-16 13:03 UTC
The "cancelLink" & "okButton" options in the Ajax.InPlaceEditor does not work???
Hi, The "cancelLink" & "okButton" options in the Ajax.InPlaceEditor does not work. That is when I set them to false both the OK button and the CANCEL link still appear. Is this a bug??? VIEW CONTAINS (Ruby on Rails view file) ===========================================<p> In Place Editor <%= in_place_editor_field :expense, ''body'', {}, { :okButton => ''false'', :cancelLink => ''false'' } %> </p> WHICH GIVES THE FOLLOWING (VIEW SOURCE) - View Source - Note the "cancelLink" and "okButton" are set to false. ===========================================<p> In Place Editor <span class="in_place_editor_field" id="expense_body_6_in_place_editor">1234</span><script type="text/ javascript"> //<![CDATA[ new Ajax.InPlaceEditor(''expense_body_6_in_place_editor'', ''/ testcontroller/set_expense_body/6'', {cancelLink:''false'', okButton:''false''}) //]]> </script> </p> HOWEVER AFTER CLICKING THE DOM IS (I.E. OK & CANCEL ARE CREATED?) - from FireBug ===========================================<p> In Place Editor <form id="expense_body_6_in_place_editor-inplaceeditor" class="inplaceeditor-form"> <input class="editor_field" type="text" name="value"/> <input class="editor_ok_button" type="submit" value="ok"/> <a class="editor_cancel_link editor_cancel" href="#">cancel</a> </form> <span id="expense_body_6_in_place_editor" class="in_place_editor_field" title="Click to edit" style="background- color: rgb(255, 255, 153); display: none;">1234</span> <script type="text/javascript"> //<![CDATA[ new Ajax.InPlaceEditor(''expense_body_6_in_place_editor'', ''/ testcontroller/set_expense_body/6'', {cancelLink:''false'', okButton:''false''}) //]]> </script> </p> Regards Greg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
greghauptmann
2008-Apr-16 13:09 UTC
Re: The "cancelLink" & "okButton" options in the Ajax.InPlaceEditor does not work???
PS. As background I''m trying to get "Excel" like (e.g. like Google spreadsheet) in_place_editing happening in a table. I didn''t want to have the OK and Cancel buttons appearing. greghauptmann wrote:> Hi, > > The "cancelLink" & "okButton" options in the Ajax.InPlaceEditor does > not work. That is when I set them to false both the OK button and the > CANCEL link still appear. Is this a bug??? > > > VIEW CONTAINS (Ruby on Rails view file) > ===========================================> <p> > In Place Editor > <%= in_place_editor_field :expense, ''body'', {}, > { :okButton => ''false'', > :cancelLink => ''false'' > } %> > </p> > > WHICH GIVES THE FOLLOWING (VIEW SOURCE) - View Source - Note the > "cancelLink" and "okButton" are set to false. > ===========================================> <p> > In Place Editor > <span class="in_place_editor_field" > id="expense_body_6_in_place_editor">1234</span><script type="text/ > javascript"> > //<![CDATA[ > new Ajax.InPlaceEditor(''expense_body_6_in_place_editor'', ''/ > testcontroller/set_expense_body/6'', {cancelLink:''false'', > okButton:''false''}) > //]]> > </script> > </p> > > HOWEVER AFTER CLICKING THE DOM IS (I.E. OK & CANCEL ARE CREATED?) - > from FireBug > ===========================================> <p> > In Place Editor > <form id="expense_body_6_in_place_editor-inplaceeditor" > class="inplaceeditor-form"> > <input class="editor_field" type="text" name="value"/> > <input class="editor_ok_button" type="submit" value="ok"/> > <a class="editor_cancel_link editor_cancel" href="#">cancel</a> > </form> > <span id="expense_body_6_in_place_editor" > class="in_place_editor_field" title="Click to edit" style="background- > color: rgb(255, 255, 153); display: none;">1234</span> > <script type="text/javascript"> > > //<![CDATA[ > new Ajax.InPlaceEditor(''expense_body_6_in_place_editor'', ''/ > testcontroller/set_expense_body/6'', {cancelLink:''false'', > okButton:''false''}) > //]]> > > </script> > </p> > > > Regards > Greg--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---