Hi !

I'd like to know if it is possible to create a server-side generated
SELECT object instead of an INPUT for the InPlaceEditor.  I guess it
is, because createEditField() seems to be devoted to that.

Unfortunately, my JavaScript skills are lacking.  Can someone direct
me as to how to override a single method in a JavaScript object ?

I have the following HTML code:
<span class="editable" id="status_<%= payment.id %>"><%=
h(payment.status) %></span>
<%= javascript_tag %Q(new Ajax.InPlaceEditor('status_#{payment.id}',
        '#{url_for(:action => :change_status, :id => payment)}',
        {highlightendcolor: '#000000', highlightcolor: '#A80000'})) %>

( You guessed it - I'm on Rails 0.13.1 ! )

Thanks !
--
François Beausoleil
http://blog.teksol.info/
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to