simpleirony
2008-Jan-29 07:10 UTC
Struggling to extend some of the functionality of the autocompleter
I''ve been working with the scriptaculous autocompleter script throughout the week working to extend its functionality in some new ways. I just can''t get past this one hurdle, which I''m hoping is easy for someone else to answer: When someone enters a query into the search field, it generates a customized list that I formatted in a separate file (_contacts.rhtml). How do I keep that list that was generated in place even AFTER a user clicks somewhere on it. Right now, if the user clicks anything - even tries to highlight text - it disappears. I can accomplish this purpose if I simply remove the contents in this function... hide: function() { this.stopIndicator(); if(Element.getStyle(this.update, ''display'')!=''none'') this.options.onHide(this.element, this.update); if(this.iefix) Element.hide(this.iefix); }, Unfortunately, this also leaves remnants of the results box when the form field is cleared out. Are there any other options? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---