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

On Nov 9, 8:24 pm, “[email protected][email protected]

No, I didn’t.

I’ll have a look now.

Thanks.

j

On Nov 9, 2007, at 1:24 PM, [email protected] wrote:

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.

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

On Nov 13, 2007, at 4:57 PM, rubyreddy wrote:

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

I guess some CSS-fu is needed there, there are guys that know their
stuff in freenode#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