When you read this book, you may have learned most of the technologies required to implement Ajax in applications. I would like to emphasize that AJAX is a client-side technology. No matter what server-side technology you are using, you can use Ajax, regardless of Java or ,. net, Ruby, PHP, or CGI. In fact, in this book we do not consider the server side, and assume that you have a clear idea of how to combine the server side technology used in daily work. In the following hundreds of pages, we emphasize client technologies and methods. These technologies are used to create a wide range of browser-based applications.
Although you can use any server-side technology you like, you still need to change your mind when using Ajax. In general web applications, server-side Code presents a complete page and involves a complete unit of work. Ajax may return only a small amount of text, and only a small subset of a business application is involved. For most experienced web developers, there is no problem in understanding, but remember this point.
Some emerging frameworks help developers jump out of some Ajax details. However, you still need to know something about JavaScript. We know that JavaScript may be difficult to use. But unfortunately, there is no way to do this. Most of us have learned this trick to use "Alert" as a system type output to help debugging. Unfortunately, this technology is widely used. But now we have a new tool.
In addition to Javascript, you also need to be familiar with other techniques related to representation, such as HTML, Dom, and CSS. You don't have to be an expert in this area, but it is necessary to have a basic understanding. In this book, we will talk about most of the content you need to know. If you haven't talked about it, you can refer to the resources on the Internet.
About the test driver (you must have written a unit test, right ?), We will introduce jsunit and selenium (see Figure 1-8 ). With these tools, you can first develop JavaScript testing and check the browser compatibility test. It is generally believed that the next-generation development environment will provide better support for Javascript, and other Ajax-related technologies will further reduce the burden on developers. Ongoing scripts and frameworks make development easier.
Figure 1-8 Selenium