September 2007
Intermediate to advanced
600 pages
20h 21m
English
You’ve already seen how ColdFusion can dramatically simplify server-side validation by automatically generating code for you. Well, it can do the same for client-side validation, generating the JavaScript needed to validate form fields. And the best part is that you already know the tags you need to make this work: they are <cfform> and <cfinput>.
Listing 13.5 contains login3.cfm, a slightly modified version of login2.cfm. Make that very slightly modified. Can you even see the change?
<!--- Name: login3.cfm Author: Ben Forta (ben@forta.com) Description: Form field validation demo Created: 07/01/07 ---> <html> <head> <title>Orange Whip Studios - Intranet</title> ... |
Read now
Unlock full access