/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Forms: Search textfield while results are filtered in textbox below

Using 2 data points (EmployeeName, EmployeeLocation) I want to search for EmployeeName(s) in one textfield while displaying filtered EmployeeLocation(s)results in a multi-line textbox below it. I have the EmployeeName and EmployeeLocation data already in a table:
ID EmployeeName EmployeeLocation
1 TIM JONES CUPERTINO, CA

I use this dynamic auto-complete.js located here as the search field:
[url]http://www.codeproject.com/jscript/jsactb.asp[/url]

I modified it so that it uses a query to create the array of EmployeeName(s):
customarray = Array(
<%PrintJavascriptArray “dsn=myDSN”, “SELECT EmpName FROM bplookup”%>
);

Here is my search form:
<input name=”EmployeeName” id=”actb_textbox” autocomplete=”off” >

I have an empty textfield below that:
<textarea name=”textfield” rows=”5″></textarea>

And what I am trying to accomplish is to be able to start typing a name in the search field while displaying the EmployeeLocation results in the textarea below.

Any suggestions?

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@CrazyMerlinFeb 28.2007 — try an asp forum
Copy linkTweet thisAlerts:
@ssTahoeauthorFeb 28.2007 — Cross-post?
Copy linkTweet thisAlerts:
@CrazyMerlinFeb 28.2007 — only if you want to get flamed...lol

I'm sure you'll be fine though. It's just that you will probably get a more complete response from the ASP forum.
Copy linkTweet thisAlerts:
@ssTahoeauthorFeb 28.2007 — Cool. Thx CM
×

Success!

Help @ssTahoe spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...