/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Ajax database

Hi Guys,

I have never used Ajax before but am very familiar with PHP and javascript. Could somebody point me in the right direction of producing a script that obtains information from a database as one types into a text box. (Just like the friends search box on Facebook, where as you type it lists the results below as you type)

Preferable I would like to use MySQL with AJAX but not sure if that is possible?

Thanks in Advance,

Ben

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@KorOct 24.2010 — AJAX is in fact a technique, not a language. It uses JavaScript as a display language. AJAX technique is much alike a classical submit technique, except that it uses a special object (XMLHttpRequest - or ActiveX Object for IE<7) to carry the request and the response back and forth from an external file(could be a PHP file, yes, same as in classical submit, which php file does the DB interrogation and echoes a certain response). Nothing fancy, except that AJAX can make a submit without changing the session, which is the main advantage.

http://www.w3schools.com/Ajax/ajax_aspphp.asp

http://www.w3schools.com/Ajax/ajax_database.asp
Copy linkTweet thisAlerts:
@Benji6996authorOct 24.2010 — All sorted, thanks very much guys.
×

Success!

Help @Benji6996 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...