Consuming Web services
jQuery Ajax enables you to consume web services through client code. In this recipe, we will send form data to a web service method. The constructs used in this example are summarized in the following table:
Construct |
Type |
Description |
---|---|---|
|
jQuery selector |
This selects an element based on its ID. |
|
jQuery selector |
This selects all elements with the specified HTML tag. |
|
jQuery function |
This posts an Ajax request to the server with the set options. |
|
jQuery method |
This inserts content at the end of each matched element. |
|
jQuery event |
This is fired when you click on an element. It corresponds to the JavaScript |
|
jQuery method |
This prevents the default action of the event from being triggered. |
|
jQuery event binder |
This triggers the |
|
jQuery selector |
This selects matched... |