Hi,

InPlaceEditor invoke createEditField method for creating its textField
element.
So you can instantiate InPlaceEditor and override the
createEditField() method
with something like this:

    var editor = new Ajax.InPlaceEditor('editme', '#');

    Object.extend(editor, {
      _createEditField: editor.createEditField,
      createEditField: function() {
        this._createEditField();
        new Autocompleter.Local(this.editField, 'band_list', ['ABBA',
'AC/DC', 'Aerosmith', 'America'], {});
      }
    });

lskatz <[EMAIL PROTECTED]> wrote:
> Ok maybe this is too hard... is there some kind of parameter/function
> that I can put into the inplaceeditor that is activated when the
> inplaceeditor is created?  If that is the case, then I can create the
> autocompleter when the inplaceeditor is made.  Thanks.
>
> On Jul 11, 10:45 am, lskatz <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > Is there an easy way to get an inplaceeditor with an autocompleter?
> > I want to be able to click some text and have the inplaceeditor pop
> > up, but also have the autocompleter on it.
> > Thanks.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to