uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
can't use uShopJSI.class

Knowledge Base Lobby : uShop Support Conference : Applets are not being displayed
Oct-19-17 10:48 AM EST
Original Message
can't use uShopJSI.class
Author wchin on 05-21-2003 at 23:27 (EST)
Dear Sirs,
please check my page at http://www.coolthingsforthehome.com/granite/granite.htm. I can't get the "add to shopping cart" button to work.

see this line:

onclick="addTIS();return false;"
href="">


Where should the "href" point to?

Thanks,

Warren Chin
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: can't use uShopJSI.class Bill Weiner, 2003-05-23 07:24:46 (1)
            thanks wchin, 2003-05-23 21:42:44 (2)

Messages In This Discussion
         1. RE: can't use uShopJSI.class
        Author Bill Weiner on 05-23-2003 at 07:24 (EST)
There are a couple problems on that page:

1) Everywhere on the page where you have:

document.TIS.Choose Knob & Finish.options

... that is causing a JavaScript "missing ) after argument" problem. Instead of using "Choose Knob & Finish" in those places, you need to be using the name given to your "select".... which from looking at your HTML forms, is current set to "select". (By the way, you may want to give those select fields a more meaningful name such as "know_and_finish"). Anyway, if you leave the select name of that field set to "select", then you should be using:

document.TIS.select.options

... in all those places instead of:

document.TIS.Choose Knob & Finish.options


2) Also, I noticed you have multiple JavaScript add buttons on that page.... and for each add button, you have another function called "addTIS()" and a form named "TIS". Unless you make the addTIS() function generic to accept a product ID parameter, you need to give each function and form a unique name.


Refer to the "JavaScript Input Example 3" in the uShop applet reference to see an example of how one button/form should be setup:

http://www.uburst.com/uShop/reference/applets.html
TABLE OF CONTENTS
                 2. thanks
                Author wchin on 05-23-2003 at 21:42 (EST)
thank you! I will try that!

Warren
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.