Chapter 8Ajax

—by K. Scott Allen and Jon Galloway

What's In This Chapter?

  • Understanding jQuery
  • Using Ajax helpers
  • Understanding client validation
  • Using jQuery plugins
  • Improving Ajax performance

WROX.COM CODE DOWNLOADS FOR THIS CHAPTER

You can find the wrox.com code downloads for this chapter at http://www.wrox.com/go/proaspnetmvc5 on the Download Code tab. The code for this chapter is contained in the following files:

  • MvcMusicStore.C08.ActionLink
  • MvcMusicStore.C08.AjaxForm
  • MvcMusicStore.C08.Autocomplete
  • MvcMusicStore.C08.CustomClientValidation
  • MvcMusicStore.C08.jQuery
  • MvcMusicStore.C08.Templates

Building a new web application today and not including Ajax features is rare. Technically, Ajax stands for asynchronous JavaScript and XML. In practice, Ajax stands for all the techniques you use to build responsive web applications with a great user experience. Being responsive does require some asynchronous communication now and then, but the appearance of responsiveness can also come from subtle animations and color changes. If you can visually encourage your users to make the right choices inside your application, they'll love you and come back for more.

ASP.NET MVC 5 is a modern web framework, and like every modern web framework it has support for Ajax right from the start. The core of the Ajax support comes from the open source jQuery JavaScript library. Most of the major Ajax features in ASP.NET MVC 5 build on or extend features in jQuery.

To understand what is possible with ...

Get Professional ASP.NET MVC 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.