Reply
form validation using AJAX
Old 10-11-2009, 03:57 AM form validation using AJAX
Experienced Talker

Posts: 44
Trades: 0
plz i want to know how i can make a form validation using AJAX???

i need a sample or an idea of how making my form validation using AJAX

thnx alot in advance
john_zakaria is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-11-2009, 04:54 AM Re: form validation using AJAX
chrishirst's Avatar
Super Moderator

Posts: 22,225
Location: Blackpool. UK
Trades: 0
Validating form values using AJAX methods is an uneccessary and wasteful step, the form is going to be sent to the server anyway, why would you query the server about every entry first??

Validate by javascript before (or on) submission or validate server side after submission.

There are of course some valid reasons for making some checks on certain items are allowed, checking if a particular username is available for instance.

For such an instance you would need a server side function that responded with a true or false, call that using the usual XMLHttp mehods then your javascript would take appropriate actions based on the returned value. EXACTLY the same as you would use for ANY other AJAX method.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to form validation using AJAX
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.11308 seconds with 13 queries