Topic: in_place_editor_field with auto_complete

Anyone know how to get in_place_editor_field to work with auto_complete? More specifically an auto complete that works with a javascript array instead of getting the data from the server.
Any help appreciated.

Re: in_place_editor_field with auto_complete

I think the only way to this would be to subclass the EditInPlace and manually build the form to include the auto_complete stuff.

In EditInPlace, there are a couple of functions that build the form - createTextField and ... something I can't remember off the top of my head. You'd have to into these to overide the default behaviours.

Alternatively, you might be able to hack something a bit more manual. Build the auto_complete as usual in a hidden div element with a remote_form, then attach an onclick to the field you want to act as the EditInPlace ... show the auto_complete form, hide the Edit field. When the user clicks save, save the edited text and switch the fields back.

The second one is easier, but not as reusable.

Toby Hede
===================================================
FiniteStateMachine - Software Development for Social Networks
===================================================

Re: in_place_editor_field with auto_complete

There is a plug-in that does this, I think it is form Ola Bini ( correct name ? ); just google.