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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Sorry, but there''s absolutely no sense of context here. This is a Firebug dump of scriptaculous libraries, without your own HTML or JS code. Can you please provide the code you''re using to make this work? -Fred On Mon, Jul 7, 2008 at 8:23 AM, ashwini <ashwinisj-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi, > I have been using Ajaxautocomplete control.js. I am facing problem in > this piece of code.-- Science answers questions; philosophy questions answers. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, Indeed, more detailed info would be helpful. FYI: We''re moving from this group to the new Prototype & script.aculo.us group: http://groups.google.com/group/prototype-scriptaculous prototype-scriptaculous-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Although people are still answering here (for now), it''s best to start new threads over there instead. We plan to stop replying to new threads in this group ''round about 15th of July. -- T.J. Crowder tj / crowder software / com On Jul 7, 2:23 pm, ashwini <ashwin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
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 <ashwin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---