What you are looking for is the "evalScripts" option that you can pass
to Ajax.Updater.  See this page for more information about it:


So you could do something like this:

new Ajax.Updater('items', '/items', {
  parameters: { text: $F('text') },
  evalScripts: true

On Apr 8, 9:42 am, Antti Boman <antti.bo...@gmail.com> wrote:
> I actually checked the source and couldn't find anything there, or
> then I just didn't understand it completely. That's why I decided to
> ask here. The updateElement and afterUpdateElement methods are useless
> in this case, as they are run after the selection's been made. Also,
> "callback" is too early for my purposes. The thing I'm looking for is
> in the middle of them, and it seems there is no such thing and I may
> have to code it myself.
> Thanks for your help, anyway!
> -a
> On Apr 8, 5:06 pm, Walter Lee Davis <wa...@wdstudio.com> wrote:
> > I haven't seen anything in the Wiki either, but you might want to  
> > check the source. There may be a function in there you could hook on  
> > to that's just not documented. The only two events in the  
> > autocompleter cycle that appear extensible are updateElement (where  
> > you have to replace the entire add-the-item-to-the-field part with  
> > your own creation), afterUpdateElement (which looks interesting) and  
> > callback (before the field data is sent to the server, might be too  
> > soon for you).
> > Walter
> > On Apr 8, 2009, at 8:50 AM, Antti Boman wrote:
> > > I couldn't find any method for the Autocompleter object that would run
> > > a piece of javascript, either. And I also didn't find anything by
> > > googling.
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to