Hello
I am reading Agile Web D. with rails (third addition).
And I need some help with it.
I have reached chapter 9.3 (AJAX)
when I press on the add to cart button I get an error message.
a real ugly one.
eventually, I downloaded the PDF version and copied the content of the
files but it did not help.
I have looked but could not find the problem.
Please give me a hand.
the files of this application are at:
Download link: http://rapidshare.com/files/389266124/chapter-9.tar.gz
I think that the error is written in javascript
and this is it:
try {
Element.update(“cart”, "\n\n<div class="cart-title">Your
Cart\n
id="current_item"> \n\n\n\n\n\n\n\n\n \n \n\n\n\n \n \n \n \n\n
7× | Pragmatic Project Automation | $209.65 |
Total | $209.65 |
Your Cart
\\n\\n \\n\\n\\n\\n\\n \\n\\n\\n\\n\\n\\n\\n\\n \\n
\\n \\n\\n\\n\\n \\n \\n
\\n
\\n\\n7× | Pragmatic Project Automation | $209.65 |
Total | $209.65 |
Thanks
Angel