# Autocompleting InPlaceEditor

**URL:** <https://www.ruby-forum.com/t/autocompleting-inplaceeditor/99262>\
**Category:** Rails\
**Created:** [July 21, 2006, 10:32am UTC](https://www.ruby-forum.com/t/autocompleting-inplaceeditor/99262 "2006-07-21T10:32:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ola\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/858c86/32.png) [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Post date:** [July 21, 2006, 10:32am UTC](https://www.ruby-forum.com/t/autocompleting-inplaceeditor/99262/1 "2006-07-21T10:32:56Z")

</div>

Hi,

I’ve created some extensions to [script.aculo.us](http://script.aculo.us) InPlaceEditor, allowing  
the use of either server-driven, or local autocompletion. I’ve also  
created new helper methods in Rails for this functionality.

My question is, is there any interest that I package this and make it  
available as a plugin, or something like that?

## Regards

Ola B. ([http://ola-bini.blogspot.com](http://ola-bini.blogspot.com))  
JvYAML, RbYAML, JRuby and Jatha contributor  
System Developer, Karolinska Institutet ([http://www.ki.se](http://www.ki.se))  
OLogix Consulting ([http://www.ologix.com](http://www.ologix.com))

“Yields falsehood when quined” yields falsehood when quined.

---

<div class="post-metadata">

**Author:** ![Ola\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/858c86/32.png) [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Post date:** [July 21, 2006, 10:45am UTC](https://www.ruby-forum.com/t/autocompleting-inplaceeditor/99262/2 "2006-07-21T10:45:15Z")

</div>

On 7/21/06, Ola B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> I’ve created some extensions to [script.aculo.us](http://script.aculo.us) InPlaceEditor, allowing  
> the use of either server-driven, or local autocompletion. I’ve also  
> created new helper methods in Rails for this functionality.

Yes!!! I’m just working my way through AWDWR and have been looking for  
a way to accomplish exactly this. The fact that you’ve implemented  
local autocompletion is of great value to me since I’ll be doing  
autocompletion on a small (\< 50) set of tags.

TIA alex

BTW Beware of Jönsan in the summer;)

---

<div class="post-metadata">

**Author:** ![Ola\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/858c86/32.png) [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Post date:** [July 21, 2006, 7:40pm UTC](https://www.ruby-forum.com/t/autocompleting-inplaceeditor/99262/3 "2006-07-21T19:40:49Z")

</div>

On Jul 21, 2006, at 1:32 AM, Ola B. wrote:

> –  
> Ola B. ([http://ola-bini.blogspot.com](http://ola-bini.blogspot.com))  
> JvYAML, RbYAML, JRuby and Jatha contributor  
> System Developer, Karolinska Institutet ([http://www.ki.se](http://www.ki.se))  
> OLogix Consulting ([http://www.ologix.com](http://www.ologix.com))
> 
> “Yields falsehood when quined” yields falsehood when quined.

Hey Ola-

```
Yes please make a plugin. I would find it useful.

```

Cheers-  
-Ezra

---

<div class="post-metadata">

**Author:** ![Ola\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/858c86/32.png) [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Post date:** [July 21, 2006, 7:50pm UTC](https://www.ruby-forum.com/t/autocompleting-inplaceeditor/99262/4 "2006-07-21T19:50:46Z")

</div>

Ezra Z. wrote:

> On Jul 21, 2006, at 1:32 AM, Ola B. wrote:
> 
> Hey Ola-
> 
> ```
> Yes please make a plugin. I would find it useful.
> 
> ```
> 
> Cheers-  
> -Ezra
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

Hi, ok, I’ve made a plugin of this, but there is NO documentation yet. I  
will make some kind of proper announcement when I’ve done that.  
The svn is [http://svn.ki.se/rails/plugins/in\_place\_completer](http://svn.ki.se/rails/plugins/in_place_completer)  
And you use it by adding this to your head:  
\<%= javascript\_include\_tag :defaults %\>  
\<%= in\_place\_completer\_include %\>

There is only a helper for the local-completion right now, but the other  
will come _very_ soon. The Ajax component is there, though. An example  
of using the local completing editor can look like this:

\<%= in\_place\_local\_completing\_editor\_field :person, :name, %w(Ola Ezra  
Gedas Steve) %\>

Where the params are:  
object\_name, field\_name, completions, tag\_options, editor\_options,  
completer\_options

where completions should be an array of values, tag\_options are the same  
as tag\_options for in\_place\_editor\_field, editor\_options accept the same  
as in\_place\_editor\_field and completer\_options the same as  
text\_field\_with\_auto\_complete.

## Enjoy

Ola B. ([http://ola-bini.blogspot.com](http://ola-bini.blogspot.com))  
JvYAML, RbYAML, JRuby and Jatha contributor  
System Developer, Karolinska Institutet ([http://www.ki.se](http://www.ki.se))  
OLogix Consulting ([http://www.ologix.com](http://www.ologix.com))

“Yields falsehood when quined” yields falsehood when quined.

---

<div class="post-metadata">

**Author:** ![Ola\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/858c86/32.png) [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Post date:** [July 21, 2006, 7:41pm UTC](https://www.ruby-forum.com/t/autocompleting-inplaceeditor/99262/5 "2006-07-21T19:41:09Z")

</div>

Hello,

fully agree.

Regards,  
Gedas

On 21/07/06, Ezra Z. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > it available as a plugin, or something like that?

–  
SÄ?kmÄ?s!

Pagarbiai,  
Gedas K.  
[http://gedas.maniakas.com](http://gedas.maniakas.com)
