Prev | Current Page 82 | Next

Frank Zammetti

"Practical DWR 2 Projects"

You have to take a leap of faith here and
pretend a server was rendering the response that is those HTML pages. They all look virtually
the same, so I will only show one as an example (see Listing 1-2).
CHAPTER 1 n AN INTRODUCTION TO AJAX, RPC, AND MODERN RIAS 29
Listing 1-2. Sample Response Listing Characters from the Greatest Show Ever, Babylon 5!

As expected, it really is nothing but the markup for our second element.
function updateCharacters() {
var selectedShow = document.getElementById("selShow").value;
if (selectedShow == "") {
document.getElementById("divCharacters").innerHTML = "";
return;
}
// Instantiate an XMLHttpRequest object.


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