Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 16th, 2004, 01:45 PM
Authorized User
 
Join Date: Mar 2004
Location: , , .
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to gmoney060 Send a message via MSN to gmoney060
Default Javascript & Asp

This is going to be really hard to example but I am going to try my best. This is an example of a database that I would use to do what I want:

Database:
| WordID | StrWord |
    1 wood
    2 food
    3 feed

Example 1: On my ASP webpage I would want to have a form text field. If I would start to type the letter "w" it would search the database and the first recordset it found that has the letter "w" as the first letter. It then would display the rest of the word in a diffrent color font. So it would be something like this: wood. Then if I would type "wo" it would look something like this: wood.

Example two: If i would type "f" it would display feed. (because the second "e" becomes before "o") then if i would type "o" then it would look something like this: food.

I think this has to be possible..... But I have NO clue even how to being...? Any Help would be GREAT. I figure that i would have to use javascript too.

  #2 (permalink)  
Old August 16th, 2004, 02:01 PM
Friend of Wrox
 
Join Date: Aug 2003
Location: , , .
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is not a small answer, nor is there a single way of doing this. The basic structure is you have an HTML textbox that the user types search in and a button for them to click when they are done. When they click the button a javascript fires that posts the data to the server (this could be done through form post, XMLHTTP post to another ASP, etc.). Upon receiving the post the ASP page queries the database through the business layer (generally a VB COM dll though you could do it directly through ASP in a small solution). The ASP then converts the return to HTML which is posted in a DIV tag. For more information you will need to POST a more specific question.

Yehuda


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript && keeps turnig into && ayrton Pro VB.NET 2002/2003 3 June 27th, 2005 03:34 PM
Modal Dialog (javascript & ASP.NET) nestor082 ASP.NET 1.0 and 1.1 Basics 2 March 30th, 2005 08:38 PM
Unterminated string constant (javascript&asp) beatmasta Javascript 1 May 17th, 2004 11:58 AM
javascript & asp pilmart Javascript How-To 2 March 6th, 2004 12:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.