jQuery in Action
280
CHAPTER 9
Prominent, powerful, and practical plugins
success
callback. (For clarity, the
beforeSubmit
function isn't shown as part of the
options display.)
When the Test button is clicked, a request is initiated via an
ajaxSubmit()
com-
mand applied to a wrapped set containing the form of the first pane. The
URL
of
the request defaults to the
action
of that form:
reflectData.jsp
, which formats
an
HTML
response depicting the parameters passed to the request.
Leaving all controls as they are upon initial load, click the Test button. You'll
see the results as shown in figure 9.4.
The Submitted data, as expected, reflects the names and values of all success-
ful controls; note the absence of unchecked check boxes and radio buttons. This
perfectly mimics the submission of data that would occur if the form were to be
submitted normally.
perfectly mimics the submission of data that would occur if the form were to be
submitted normally.
The Options used to make the request are also shown, allowing us to see how
the request was made as we change the options in the Control Panel. For example,
Figure 9.3 The ajaxSubmit Laboratory lets us play around with the workings of the
ajaxSubmit()
method.