12
Votes

Simple ASP.NET MVC jquery ajax call

published 3095 days, 3 hours, 46 minutes ago posted by venkatvenkat 3104 days, 13 hours, 58 minutes ago
Sunday, August 2, 2009 6:18:53 PM GMT Friday, July 24, 2009 8:06:29 AM GMT

One of the coolest features of ASP.NET MVC is seeing html again and being able to manipulate it in ways that the php folks have been doing for years.

I have been guilty of forgetting that javascript and html are the key components to an ajax call and been using ajax.net instead of digging into the heart of the XMLHttpRequest Object. Fortunately a number of javascript libraries that help ease the creation of a real javascript ajax call. For this example I will be using jquery, though it is important to note that this same technique will work with any of the other javascript helper libraries available that include ajax capabilities. If you feel especially hands-on you can try this sample with the classic javascript code.

Category: Science | Clicked: 6 | | Source: www.ajaxprojects.com | show counter code