Friday, 2 January 2015

XML/XSL and Javascript Shopping Cart



I have a university assignment to create a shopping cart using HTML,XSL,XML and Javascript. I decided to use XML/XSL and Javascript.


I have managed to get a table to display along with a javascript button for my basic structure. My question is, how do I use the XML data that I have in my javascript functions.


My code can be found here:


http://ift.tt/1xdPs28


The javascript code currently is just placeholder as it does not work. What I wanted to work out was how to use my XML data in the Javascript function "function AddtoCart(name,description,price)".


No comments:

Post a Comment