text_field_with_auto_complete scrollbars

Greetings,

I am using text_field_with_auto_complete to help narrow a long list of
subject headings, about 10,000 in all. However, I wish to provide a
scrollbar so that users can scroll through a list if there are too
many results returned in the drop down. Has anyone been able to do
this? I have and still am searching around but without too much
success.

Regards,
John

Hi John

Have you talen a look at a Rails Plugin called RecordSelect ?

CCH
http://cch4rails.blogspot.com

No, I didn't.

I'll have a look now.

Thanks.

j

The selection list lives in a DIV with a generated ID, class "auto_complete", and some inline CSS. You can inspect them with Firebug.

So, perhaps you could try adding something like

   /* untested */
   #the_generated_id {
     height: something;
     overflow: auto;
   }

to some CSS.

-- fxn

hi xavier, i had tried what you had said,it works fine on FireFox but
on IE the drop down dissapears when i try to drag it with mouse,it
works fine when i do it with up and down keys..is there any fix for
that

Thanks

I guess some CSS-fu is needed there, there are guys that know their stuff in freenode#css.

-- fxn