search for: java_script_macros_helper

Displaying 5 results from an estimated 5 matches for "java_script_macros_helper".

2006 Jan 30
1
auto_complete_with_index_for
...for autocomplete since it references a database object with a large number of choices and long descriptions. Using a select list is extremely ugly in this case. I copied the code for text_field_with_auto_complete out of /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/helpers/java_script_macros_helper.rb and hacked it, putting the result in app/helpers/application_helper.rb as text_field_with_index_auto_complete. All it does differently is not output the index in the name of the method to be called. I copied the code for auto_complete_for out of /usr/local/lib/ruby/gems/1.8/gems/actionpack...
2006 Mar 25
0
in_place_collection_editor
...g this as a plugin it''s a PITA to have to restart the server for the changes to reload. Anybody interested in the code (in plugin form) can check it out from: http://ruairimccomb.com/svn/in_place_collection_editor/ -------------- next part -------------- Index: actionpack/test/template/java_script_macros_helper_test.rb =================================================================== --- actionpack/test/template/java_script_macros_helper_test.rb (revision 3940) +++ actionpack/test/template/java_script_macros_helper_test.rb (working copy) @@ -9,8 +9,20 @@ include ActionView::Helpers::TextHelper inc...
2006 Apr 02
13
autocompletion: hooking ''afterUpdateElement'' in Rails
Hi everyone, I need to trigger a Rails action after the autocompletion is completed (when the user has selected an option). From the scriptaculous doc, I figured out ''afterUpdateElement'' is the place to be but I wonder if/how and where I can hook my javascript code to this event in Rails code (I''d like to keep using the helper, if possible)? I tried passing many
2006 Apr 01
1
piggybacking an action on an autocompleted field
Hi everybody, I''d like to add a custom action to be triggered after/when an autocompleted field has been/is beeing updated by the autocompletion process. I tried the obvious - a field observer -, but it doesn''t work (see code below). I know I could write the autocompletion code myself, but I wonder if there is a simpler/more elegant way? Any idea? TIA Alain The
2006 Jun 12
8
Input/output error on linux
...e_story_description''), :rows => 15, :save_text => _("save"), :cancel_text => _ ("cancel"), :saving_text => _("Saving...")} %></div> 16: <% 17: else 18: %> /home/raconteur/gems/gems/actionpack-1.11.2/lib/action_view/ helpers/java_script_macros_helper.rb:62:in `write'' /home/raconteur/gems/gems/actionpack-1.11.2/lib/action_view/ helpers/java_script_macros_helper.rb:62:in `in_place_editor_field'' #{RAILS_ROOT}/app/views/raconteur/story/index.rhtml:15 /home/raconteur/gems/gems/actionpack-1.11.2/lib/action_view/ bas...