This sort of problem usually occurs in my experience when you have called 'new Ajax.Autocomplete' on a DOM object that doesn't (yet) exist. Make sure that you have already added the 'update' element to the DOM before calling the autocompleter.
On Jul 7, 2:23 pm, ashwini <[EMAIL PROTECTED]> wrote: > Hi, > I have been using Ajaxautocomplete control.js. I am facing problem in > this piece of code. > > this.observer = null; > > this.element.setAttribute('autocomplete','off'); > > Element.hide(this.update); > > Event.observe(this.element, 'blur', > this.onBlur.bindAsEventListener(this)); > Event.observe(this.element, 'keypress', > this.onKeyPress.bindAsEventListener(this)); > > I am using Firefox version2. It is not trigging the autocomplete data > and it is giving javascript error at Element.hide(this.update). I am > using firebug for javascript debugging. > > Please help. > Thanks in advance > Ashwini --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---