O'Reilly logo

HTML5 for .NET Developers: Single page web apps, JavaScript, and semantic markup by Jim Jackson II and Ian Gilman

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

Chapter 5. The History API: changing the game for MVC sites

This chapter covers

  • Understanding the basic operation of the History API
  • Integrating MVC with the HTML5 History API
  • Controlling history in a web application

Suppose you’re building a newsreader application for the web and want to incorporate a search feature for things like images, people, and places. You build a responsive HTML5 interface with a popup <div> that allows a user to cycle through multiple tabs refining the search. In the background you’re using Ajax and jQuery to ping the server for hit counts based on each updated criteria. What do you think will happen when the user cycles through three tabs adding criteria and then, out of force of habit, hits the Back button? Unless ...

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