Thanks...I'll try it out.

This gets called in on the <select>

<select name="select" >
<option value="" selected>Select...</option>
                                            <option value="1" >username 1</option>
                                            <option value="2" >username 2</option>
                                            <option value="3">username 3</option>
                                            <option value="4" >username 4</option>
                                            <option value="5" >username 5</option>
                                             ...
                                             ...
                                          </select>

On Thu, 13 May 2004 09:09:26 -0400, Tangorre, Michael wrote:

>
>> Let me clarify that.
>>
>> I do log in with just a username and password. Once logged in
>> there is a selection dropdown box where you can select a user
>> profile? This profile list is whats very large.
>>
>> Sorry for the confusion.
>
>Will the selection populate a bunch of other input boxes based on the
>selection or do you just want to help the user traverse the list without
>having to scroll for miles. If the former, check out www.pengoworks.com. If
>the latter, check out this function:
>
>function searchSelectBox(in_sFormName, in_sInputName, in_sSelectName)
>{
> sSearchString =
>document.forms[in_sFormName].elements[in_sInputName].value.toUpperCase();
> iSearchTextLength = sSearchString.length;
>
> for (j=0; j <
>document.forms[in_sFormName].elements[in_sSelectName].options.length; j++)
> {
> sOptionText =
>document.forms[in_sFormName].elements[in_sSelectName].options[j].text;
> sOptionComp = sOptionText.substr(0,
>iSearchTextLength).toUpperCase();
>
> if(sSearchString == sOptionComp)
> {
>
>document.forms[in_sFormName].elements[in_sSelectName].selectedIndex = j;
> break;
> }
> }
>}
>
>This function will highlight the select item as the user types it into an
>input field.....
>
>HTH,
>
>Mike
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to