This project is for building an AJAX application that could help user have some hint on the
input texts.
Learning notes:
- Javascript:
a. Chrome and firefox can help us debug, it is really useful and beautiful.
You can set breakpoints, step trace, step into the function and debug
b. Now I use console.log console.err(..), console.warn("...") more often.
Because alert(..) is a little bit annoying.
c. The next goal is to get/set the node of the DOM to whatever I want.
- XML
a. To make a XML response from PHP, one should use text/xml instead of text/plain
b. again, Chrome quickly find out my typo and help me debug, very nice tool
Coding styles commited:
- tend to be using space rather than tabs
- tend to use 2-space wide for each indent
- the naming rules seems to be fine right now
- no tracing spaces
- using unix style line returns
- use braces like:
if (foo is true) {
do something...
} else {
do the opposite...
}