-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Django 1.0 Website Development

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 and those who use browsers without AJAX support.
So before we work with AJAX, let's write a simple view that searches bookmarks by title. First of all, we need to create a search form. So, open bookmarks/forms.py
and...
Change the font size
Change margin width
Change background colour