Prev | Current Page 770 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


414
Part II: Server Side, JavaScript, and Flash: Oh My!
Figure 14-4
The weakest part of the current implementation is probably the parseRules() function that is
responsible for transforming a string containing the validation rules into some variables. When you use
a more sophisticated parsing logic, maybe some regular expressions, it is possible to implement a
solution that permits the inclusion of separator characters (like spaces, commas, and parentheses) inside
the string parameters without breaking the parsing rule. The current implementation has been chosen to
favor the code readability and shortness.
What Is AJAX ?
AJAX is a technique that implements communication between an HTML page and a host server without
the need for refreshing the whole page. The technique is advantageous because the size of the exchanged
data is smaller than a whole page and the user interface is more responsive. The name Asynchronous
JavaScript and XML is derived from the technical implementation of this technique using the
XMLHttpRequest (XHR) object.


Pages:
758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782