Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



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

Posts: 97
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
 
 
Register now for full access!
Old 10-11-2009, 04:54 AM Re: form validation using AJAX
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,516
Name: Chris Hirst
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!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
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.30178 seconds with 12 queries