NOTE: These slides have not been updated since 2003. They have been superseded by the book
An Introduction to XML and Web Technologies
Addison-Wesley, and the accompanying online material. Please see
http://www.brics.dk/ixwt/
for more information.
Anders Møller and Michael Schwartzbach, February 2006
INTERACTIVE WEB SERVICES WITH JAVA
Hacking JavaScript
The
standard solution
is to write lots of JavaScript code to perform the validation:
Easy introduction
Form validation tutorial
Questions to the experts
Bugs on parade
This is not an ideal solution:
JavaScript is a
large language
that does much more than validation
programmers must write the same code
again and again
even trivial programs tend to require
testing and debugging
Immediate reaction of a Computer Scientist:
analyze
the problem domain
create a
domain-specific language
construct a
compiler
that will generate JavaScript code automatically
COPYRIGHT © 2002-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH