[Rails-spinoffs] Re: comma separated autocompletion, like in Google Bookmarks, GMail, ..

2006-06-01 Thread Alain Ravet
Maninder, Singh wrote: >>From the wiki - We badly need a downloadable and printable documentation, with a single entry point. Alain Ravet ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/m

[Rails-spinoffs] Re: comma separated autocompletion, like in Google Bookmarks, GMail, ..

2006-06-01 Thread Alain Ravet
> Tokenized autocompletion > new Ajax.Autocompleter('id','upd', '/url/', { tokens: ',' }); In Rails, it translates to <%= text_field_with_auto_complete :tagz, :list ,{},{:tokens => [',', '\n']} %> Thanks a lot Mandy. ___ Rails-spino

[Rails-spinoffs] comma separated autocompletion, like in Google Bookmarks, GMail, ..

2006-05-22 Thread Alain Ravet
Hi list, Hi all, In Google Bookmark and GMail -f.ex.-, autocompletion would help you enter multiple values in 1 field, separated by commas. Is there such a solution available somewhere? This is necessary for the acts_as_taggable plugin, to let people enter many tags in one file ex: "rail

[Rails-spinoffs] Thanks Thomas.

2006-04-07 Thread Alain Ravet
Thomas > This should work (haven't tested it): It worked fine. Many thanks. Alain ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

[Rails-spinoffs] Re: (SOLVED) Re: autocompletion: hooking'afterUpdateElement' in Rails

2006-04-06 Thread Alain Ravet
Anybody? How does one call a remote_function with after_update_element ? Alain It must be obvious by I can't find my way the new syntax. With the "old" syntax (patch 3691), I had written code like this : <%= text_field_with_auto_complete :city, :name, {}, :after_update_element =

[Rails-spinoffs] Re: (SOLVED) Re: autocompletion: hooking'afterUpdateElement' in Rails

2006-04-05 Thread Alain Ravet
> I've added this to the rails trunk, but slightly altered the proposed > patch, (see the comment on #3691). It must be obvious by I can't find my way the new syntax. With the "old" syntax (patch 3691), I had written code like this : <%= text_field_with_auto_complete :city, :name, {},

[Rails-spinoffs] (SOLVED) Re: autocompletion: hooking 'afterUpdateElement' in Rails

2006-04-02 Thread Alain Ravet
There's already a tiny patch in the waiting list that solves that very problem: http://dev.rubyonrails.org/ticket/3691 [PATCH] Add frequency and afterupdateelement option to text_field_with_auto_complete It justs adds 2 lines in the _auto_complete_field_ method (java_script_macros_help

[Rails-spinoffs] autocompletion: hooking 'afterUpdateElement' in Rails

2006-04-02 Thread Alain Ravet
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

[Rails-spinoffs] [Solved] : Re: sorting with D&D follows the link (browser thinks I click)

2006-02-17 Thread Alain Ravet
This problem can be solved by adding a _handle_ to restrict the part of the list element that can be used as a handle. see: http://wiki.script.aculo.us/scriptaculous/show/SortableListsDemo Alain I've just added d&d sorting to a list where each item is a link_to .. Problem: when I drop an

[Rails-spinoffs] [Solved] Re: cannot combine in_place_editor_field and a sortable list

2006-02-17 Thread Alain Ravet
This problem can be used by adding a _handle_ to restrict the part of the list element that can be used as a handle. see: http://wiki.script.aculo.us/scriptaculous/show/SortableListsDemo Alain As the title says, _sortable list_ doesn't like 'in_place_editor' very much. Problem: when

[Rails-spinoffs] Re: Forum Addition?

2006-02-17 Thread Alain Ravet
> I think we already have the best of both worlds; a forum that > posts/displays mailing list messages: > http://www.ruby-forum.com/ Don't forget gmane, that offers a newgroups facade to the list. Alain ___ Rails-spinoffs mailing list Rails-s

[Rails-spinoffs] Re: Sortable list: how to create a triggering "handle"/deactivate part of the element?

2006-02-17 Thread Alain Ravet
Thanks Stevens There's a great example of how this is done at the wiki: http://wiki.script.aculo.us/scriptaculous/show/SortableListsDemo So, in Rails View: --- part 1: <<<- HERE more stuff here that cannot b

[Rails-spinoffs] Sortable list: how to create a triggering "handle"/deactivate part of the element?

2006-02-17 Thread Alain Ravet
Hi all, When using sortable lists, a click anywhere in a element will trigger the "sort_by_dragging" mode, and have the clicked element follow the mouse. The active area is the entire element. Is there a way to either : - limit the active/triggering "area" to a part of the element (like

[Rails-spinoffs] Re: Sortable + Draggable : doesn't follow the mouse horizontally

2006-02-11 Thread Alain Ravet
Robin > Yes, use the constraints options of Sortable.create When I do that (see below) the list is no longer sortable : when I drop an element, it goes back to its original location, and the associated actin is not triggered. (Complete view code is at the bottom of this message. I place

[Rails-spinoffs] Re: sorting with D&D follows the link(browser thinks I click)

2006-02-11 Thread Alain Ravet
Gregory > I think making a clickable item draggable is begging for problems. No, it's just striving for simplicity and obviousness. With "In place edit" and "sortable list", you can replace 3 pages by 1, without adding any control or icon or whatever on the page. What's the alternative: se

[Rails-spinoffs] cannot combine in_place_editor_field and a sortable list

2006-02-10 Thread Alain Ravet
As the title says, _sortable list_ doesn't like 'in_place_editor' very much. Problem: when you click on an editable element, the field editor and the 2 buttons appears - good - , BUT they keep following the mouse - bad -, and moving, while you're in edit mode. Alain ___

[Rails-spinoffs] Re: sorting with D&D follows the link (browser thinks I click)

2006-02-10 Thread Alain Ravet
Another way to ask the question: "How to make a list of links sortable?" I read the doc and scratched my head, but I found nothing, not even dandruff. Alain > I've just added d&d sorting to a list where each item is a link_to .. > Problem: when I drop an item to its new location, the brow

[Rails-spinoffs] Sortable + Draggable : doesn't follow the mouse horizontally

2006-02-10 Thread Alain Ravet
When a 'draggable' element is made 'sortable', it no longer follows the mouse horizontally when you drag it. Is there a solution/workaround? TIA Alain ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/

[Rails-spinoffs] sorting with D&D follows the link (browser thinks I click)

2006-02-10 Thread Alain Ravet
Hi all, I've just added d&d sorting to a list where each item is a link_to .. Problem: when I drop an item to its new location, the browser think I clicked, and follows the link. Any idea? TIA. Alain ___ Rails-spinoffs mailing list Rails-spinoffs@