O'Reilly logo

YUI 2.8 Learning the Library by Dan Wellman, Daniel Barreiro

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

Restoring the browser's expected functionality

The BHM Utility allows you to register different steps in the interactions that mark changes in your application's state. Viewing different months of the Calendar control, for example, marks a change in state, and you may have noticed when we looked at this control earlier in the book that the back button of the browser remained grayed out and unavailable to us no matter how many different months were viewed.

Once a step has occurred that is defined within the BHM as a change in state, the back button of the browser becomes available and when clicked, takes the application back one of these steps. The expected functionality of the browser's interface is restored.

As well as defining different changes ...

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