This is an example that shows how to use JavaScript to take any data from a standard HTML <FORM> and add it to the uShopTM virtual shopping cart. View the source of this page to see the standard HTML that creates the FORM and the JavaScript that read the data from it. |
Below is a shopping cart applet to try it out. Note that the codebase is set to "../classes/"... so you must have the uShop classes located in that directory. |