Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-23-2011, 09:54 AM   PM User | #1
tsuby
New to the CF scene

 
Join Date: Jul 2011
Location: Romania
Posts: 8
Thanks: 3
Thanked 0 Times in 0 Posts
tsuby is an unknown quantity at this point
question. Need help fast.

How can I check the mySQL database with jQuery so that I can tell the user(in the register form) whether the username is taken or not? (like this board's register form).
tsuby is offline   Reply With Quote
Old 07-23-2011, 10:37 AM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,678
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Quote:
Need help fast.
Try to break down your problem into several parts.
1) Make a serverside script to query your database, using a string obtained to the script via GET/POST
2) Make changes to the above program such that it can return a 1/true or 0/false based on the success/failure of the DB query
3) Make a jQuery script to send Ajax requests to above made serverside script, along with the user's input.
4) Catch the return value from the script and show adequate messages/hints to the user.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Reply

Bookmarks

Tags
jquery question help fast

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:07 AM.


Advertisement
Log in to turn off these ads.