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 [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