thank you so much for your pointer, pbreit, i've followed what u said, but it still not working. currently, i put it on the views/default/index.html not in the layout.html.
it seems that vars on ajax can't be passed to another file, because when i put script on the same page, it can be run. because there are another function that need the same ajax function, so that i put it on the static/js/cart.js and then called the file on the views. does anybody know how to fix it? many thanks before On Fri, Apr 29, 2011 at 9:27 AM, pbreit <pbreitenb...@gmail.com> wrote: > Are you including the script in your layout.html or other page? > > I like to put a <script> tag in the <head> section of my layout.html: > <script src={{=URL('static','js/cart.js')}} > type="text/javascript"></script> > > >