Displaying 7 results from an estimated 7 matches for "_in_place_editor".
Did you mean:
in_place_editor
2006 Aug 12
5
In place editing on a list - not passing ID through
...d through to the controller.
I use this in my view to create the field:
<% for frame in @frames %>
...
<%= in_place_editor_field :frame, :price %>
<% end %>
and this produces the following in my output:
<span class="in_place_editor_field"
id="frame_price__in_place_editor">0.0</span>
<script type="text/javascript">
//<![CDATA[
new Ajax.InPlaceEditor(''frame_price__in_place_editor'',
''/frames/set_frame_price'')
//]]>
</script>
I understand from some research that what I''m after is t...
2007 Apr 13
2
inplace editor and textarea
Hi,
I have an inplace editor and I can access the innerHTML value of the
created form. However the innerHTML gives "<textarea>....</textarea>
..."
How can I access the textarea value? I tried to do
innerHTML.textarea.value but it didn''t work. Any ideas will be
appreciated.
Thanks,
Joe
--
Posted via http://www.ruby-forum.com/.
2006 Mar 25
0
in_place_collection_editor
...action_to_set_value" },
+ :collection => [[1,''one''],[2,''two''],[3,''three'']]
+ )
+ end
+
+ def test_in_place_collection_editor_field
+ assert_match "<span class=\"in_place_editor_field\" id=\"post_section_in_place_editor\"></span><script type=\"text/javascript\">\n//<![CDATA[\nnew Ajax.InPlaceCollectionEditor(''post_section_in_place_editor'', ''http://www.example.com/'', {collection:[''1'',''2'',''3'']})...
2006 Mar 01
2
In_place_editor in a For loop
...the id of nil, use object_id
I''m assuming this is because the in_place_editor is being called with
an incorrect id, the backtrace points to this line of the javascript
macro helper file:
tag_options = {:tag => "span", :id => "#{object}_#{method}_#
{tag.object.id}_in_place_editor", :class =>
"in_place_editor_field"}.merge!(tag_options)
Any ideas on syntax to solve this?
David
David Smalley
w: http://davidsmalley.com/blog
2006 Aug 02
2
Passing Ajax.InPlaceEditor options
I''ve followed the instructions in the Rails Recipe #1 and have the
in_place_editor_field working but now I want to tweak how it looks and
behaves. I''d like to be able to override the default yellow highlight color,
which is done using the highlightcolor param according to the scriptaculous
documentation (unless I''m missing something).
I''m new to Ruby and Rails
2006 Nov 04
2
in_place_editor_field submitOnBlur & okButton=false options?
I have a few in_place_editor_fields working fine. I can access some of
the script.aculo.us options such as :cols, :save_text, :cancel_text, but
how do I access the okButton = false & submitOnBlur options? Basically,
I want no submit button, a cancel button, and the ability to submit when
I tab out of the field.
Is this doable without writing a helper? (avoiding digging that deep so
2006 Jul 24
2
InPlaceSelectEditor question
I''m attempting to use the example given in the Rails Recipes book chapter 2,
to create a select drop-down using the InPlaceEditor function (modified to
be InPlaceSelectEditor.
The example given works (a country list drop-down), but I''m attempting to
use it to display a list of items generated from an object in another table
that is linked to the table that I''m editing.