Displaying 9 results from an estimated 9 matches for "js_option".
Did you mean:
js_options
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 Mar 25
0
in_place_collection_editor
...r
+ def in_place_collection_editor(field_id, options = {})
+ function = "new Ajax.InPlaceCollectionEditor("
+ function << "''#{field_id}'', "
+ function << "''#{url_for(options[:url])}''"
+
+ js_options = {}
+ js_options[''collection''] = "[#{options[:collection].collect{|i| array_or_string_for_javascript(i)}.join('','')}]" if options[:collection]
+ js_options[''value''] = %(''#{options[:value]}'') if options[...
2006 Mar 18
2
in_place_editor change request...
Hi,
How do I make a request to the Rails team to include a line something
like:
js_options[''savingText''] = %(''#{options[:saving_text]}'') if options
[:saving_text]
in the in_place_editor method?
script.aculo.us supports the ''savingText'' option to control the text
displayed while saving after an in-line edit. Having the ability to...
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 Apr 16
2
AJAX effect when inserting new div
Can some one point me in the right direction?
I''ve got several pages that will respond to user input by creating a new
div in the content area. I want that new div to visually expand into
view or flash with a background color rather than just appear.
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Feb 05
2
in_place_editor is missing load_text_url option
...9;t use the nifty Rails in_place_editor
method because
ActionView::Helpers::JavaScriptMacrosHelper#in_place_editor doesn''t
suppport a load_text_url option (that would ostensibly be passed on to
the AJAX constructor as loadTextURL). Dissapointed.
I added this line to in_place_editor:
js_options[''loadTextURL''] = "''#{url_for(options[:load_text_url])}''" if
options[:load_text_url]
And now I''m able to create in place editors that get their original text
from the server (not from the DOM). So from the scriptaculous example,
this code:...
2006 Mar 18
9
RJS - not working in IE
I searched thru all the postings about RJS, and I didn''t find one person
who complained of problems specific to IE, but that''s what I''ve got.
My environment is:
Rails 1.0 + RJS Plugin
Updated Javascripts to Scriptaculous 1.5.3 (for evalScripts support)
Monkeypatched in_place_editor to support evalScripts
I have just started using RJS, and I have two .rjs templates.