> 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