jQuery in Action
232
CHAPTER 8
Talk to the server with Ajax
<html>
<head>
<title>Welcome to The Boot Closet™</title>
<link rel="stylesheet" type="text/css" href="boot.closet.css">
<script type="text/javascript"
src="../../scripts/jquery-1.2.1.js"></script>
<script type="text/javascript">
$(function(){
$('#styleDropdown')
.change(function(){
var styleValue = $(this).val();
$('#detailsDisplay').load(
'getDetails.jsp',
Listing 8.4
The first phase of our Boot Closet retailer page
Figure 8.3 The server-side resource returns a pre-formatted fragment of HTML to display the
boot information.