| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||||||||||
|
|||||||||||
|
Classic ASP/AJAX - Auto Suggest Form
Hi Guys
I just posted this as a reply to this query , and thought I would share it here also OK, here we go: This is the main page, with a small form, and includes the javascript (further down this post) that talks to the ASP script on the server (even further down this post) to get the suggestions ASP Code:
This is the javascript: JavaScript Code:
and this is the ASP script on the server: ASP Code:
This one talks to the access database to get any words that start with whatever is the form field - and this is done each time the content of that field change (each and every keystroke) I have attached a ZIP file of this code with an Access DB, containing a list of Railway Station names in Sydney, Australia (300+ entries, so a good sample of the code can be run ).If you would like to see this in action, you can view it on my development server at http://dev.unimaetrix.com/hint/clienthint.asp The layout of the page is very simple as it is ony a sample of the scripts in action. Let me know if you need any further assistance , or if you find any errors in my code. ![]()
__________________
Alex - Lucky Number 13 Did I do something that helped you? - please click the scales and help my rep
|
|
#2
|
|||||||||
|
|||||||||
|
In the thread mentioned in the above post, there was a query about making the suggestions clickable, so here is some more code for that purpose: Clickable suggestion that populate the text box I haven't got the autosubmit to work yet tho ASP Code:
JavaScript Code:
ASP Code:
|