O'Reilly logo

Django 1.0 Web Site Development by Ayman Hourieh

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

Implementing live searching of bookmarks

We will start introducing AJAX into our application by implementing live searching. The idea behind this feature is simple: When the user types a few keywords into a text field and clicks search, JavaScript works behind the scenes to fetch search results and presents them on the same page. The search page does not reload, thus saving bandwidth and providing a better and more responsive user experience.

Before we start implementing this, we need to keep in mind an important rule while working with AJAX: Write your application so that it works without AJAX, and then introduce AJAX to it. If you do so, you ensure that everyone will be able to use your application, including users who don't have JavaScript enabled ...

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