Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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.

Reply With Quote
  #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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:17 PM.


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