Code

Changes between Version 2 and Version 3 of ajax_shop_basket


Ignore:
Timestamp:
09/19/06 09:00:48 (8 years ago)
Author:
anonymous
Comment:

notification of amended and improved fly-to-basket script

Legend:

Unmodified
Added
Removed
Modified
  • ajax_shop_basket

    v2 v3  
    137137 
    138138Note that this example is very limited – when you refresh the page the products in the basket list is gone – we don't get it from the database. Also it we want to make a shop we should make a table for products and add “user ID” field to the basket table so it can be used by many users (and many other features...) 
     139 
     14019 Sep 2006 - note from user: I have modified the script on my side to be entirely database-driven. In other words, the fly-to-basket.html as well as the array in views.py are fed from a mysql table. Also, the database now carries product name and price - redundant in practice, but good for my learning purposes. I am running this on WinXP on a virtual domain I called django.com. If anyone is interested in the scripts or setup help, please get in touch with me via www.helmar.org, where I will post it. Better still, find me using 'django' under www.qunu.com --Helmar