Prev | Current Page 79 | Next

Frank Zammetti

"Practical DWR 2 Projects"

In this case we see characters from the greatest
television show ever, Babylon 5 (don??™t bother arguing, you know I??™m right! And besides, you??™ll
get your chance to put in your favorites later!). Now let??™s see how this ???magic??? is accomplished.
Listing 1-1 shows the first page of our simple Ajax example, which performs a fairly typical
Ajax-type function: populate one .
With Ajax, none of that is necessary.
CHAPTER 1 n AN INTRODUCTION TO AJAX, RPC, AND MODERN RIAS 27
Figure 1-14. Note that there is no content in the second drop-down menu because nothing has yet
been selected in the first.
Figure 1-15. A selection has been made in the first drop-down menu, and the contents of the
second have been dynamically created from what was returned by the ???server.???
CHAPTER 1 n AN INTRODUCTION TO AJAX, RPC, AND MODERN RIAS 28
A Quick Postmortem
Let??™s walk through the code and see what is going on.


Pages:
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91