[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

=?Utf-8?B?cm9kY2hhcg==?=

4/8/2004 7:38:00 PM

I'd like to create a combo box in frontpage, and have it
work the same way as in Access. I need it to be
populated from an Access table and then as you type it
searches for you. Please let me know if this is possible
and how it can be done.

I have tried the activex combo box but I can't quite seem
to get it to work.

DG
1 Answer

Jim Buyens

4/8/2004 8:17:00 PM

0

>-----Original Message-----
>I'd like to create a combo box in frontpage, and have it
>work the same way as in Access. I need it to be
>populated from an Access table and then as you type it
>searches for you. Please let me know if this is possible
>and how it can be done.
>
>I have tried the activex combo box but I can't quite seem
>to get it to work.

This would be relatively difficult. To simulate a combo
box, you'd have to display an ordinary text box over an
ordinary drop-down list, then connect the two with
JavaScript code.

Basically, whenever the text box receives a keystroke, you
would have to clear the dropdown list, then scan a table
of all possible values and reload the list with any that
match.

Also, whenever the visitor changes the selection in the
dropdown list, some JavaScript would have to reload the
value in the text box.

To get the table of all possible values, you would
typically write ASP or ASP.NET code that gets the values
from a database, and then writes JavaScript code
containing those values.

Jim Buyens
Microsoft FrontPage MVP
http://www.inter...
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------