/    Sign up×
Community /Pin to ProfileBookmark

javascript search database?

Hi, basically I want to know if I can create some code that when the users enters a word, that word will come back with a description from a database using javascript. I can do this in php however I want to know how to do it in javascript. I have tried searching google and cannot find a tutorial.

any help would be appreciated,

thanks

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@tirnaFeb 27.2011 — If you want to use javascript without page refreshes then you will have to make friends with AJAX
Copy linkTweet thisAlerts:
@sabllauthorFeb 28.2011 — Thanks for putting me in the right direction. I am looking AJAX search tutorial now.
Copy linkTweet thisAlerts:
@cbVisionFeb 28.2011 — I believe you have to use a server language to actually make calls to the database though. The AJAX talks to a PHP script which connects to the database.

I don't *think* AJAX can talk directly to a database; though it's new stuff to me, so I'm curious if there are other options!
×

Success!

Help @sabll 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.19,
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,
)...