O'Reilly logo

ASP.NET jQuery Cookbook - Second Edition by Sonal Aneel Allana

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up Ajax with ASP.NET using jQuery

This recipe demonstrates the use of the $.ajaxSetup() function to configure global settings for making Ajax calls on a web page. These settings will be used across multiple Ajax calls. The constructs used in this example are summarized in the following table:

Construct

Type

Description

$("#identifier")

jQuery selector

This selects an element based on its ID

$.ajax()

jQuery function

This posts an Ajax request to the server with the set options.

$.ajaxSetup()

jQuery function

This sets up default values for Ajax requests.

.append()

jQuery method

This inserts content at the end of each matched element.

click

jQuery event

This is fired when you click on an element. It corresponds ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required