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
java script not working in IE but is in Netscape

Knowledge Base Lobby : uShop Support Conference : Problems with trying to Place Orders
Dec-16-17 04:23 AM EST
Original Message
java script not working in IE but is in Netscape
Author Lori Bannon on 02-07-2003 at 17:21 (EST)
Hiya,

I am using javascript to add products that have different sizes and different prices. In the past when I have gotten this error:

Directory Listing Denied
This Virtual Directory does not allow contents to be listed.

It was because something in the script was missing or mispelled...and always I could view it in Netscape so I could see what was missing. This time it works in Netscape and all I get out of IE is an error that says unterminated string constant but doesn't tell me what line.

Here's the .js file:

function addISONODE()
{
var price = "$12.50";
var itemQuantity = document.ISONODE.quantity.value;
var ISOSIZE = document.ISONODE.ISOSIZE.options[document.ISONODE.ISOSIZE.selectedIndex].value;


if (ISOSIZE == "Large")
{
price = "$19.99";
}
else
{
price = "$12.50";
}

document.uShopJSI.addProduct(
"ISONODE",
"IsoNode Large or Small",
ISOSIZE,
"0",
itemQuantity,
price,
"$0.00",
"$0.00",
"$0.00",
"YES");

here's the form (minus the HTML for reading purposes):

FORM NAME="ISONODE"

INPUT TYPE=text SIZE=4 NAME="quantity" VALUE="1"

select name="ISOSIZE"
OPTION VALUE="Small">Small OPTION
OPTION VALUE="Large">Large OPTION
SELECT

A HREF="" onClick="addISONODE();return false;"
form

thanks ahead of time
Lori Bannon
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: java script not working in IE but is in Netscape Bill Weiner, 2003-02-10 07:43:49 (1)
  java script not working in IE but is in Netscape Microburst Support Team, 2003-02-11 09:18:55 (2)

Messages In This Discussion
         1. RE: java script not working in IE but is in Netscape
        Author Bill Weiner on 02-10-2003 at 07:43 (EST)

Looking at your JavaScript, I don't initially see anything wrong other than the "addISONODE" function missing the final bracket "}".... but if it's working on Netscape, I imagine that missing bracket is just due to cut-n-pasting the function in this forum.

Also, since it is working in Netscape, I imagine you also have the uShopJSI applet somewhere on the page... but just didn't include that in this forum posting.

A little later today, I'll try to duplicate your HTML page on my local machine and see if I can duplicate the error.
TABLE OF CONTENTS
         2. java script not working in IE but is in Netscape
        Author Microburst Support Team on 02-11-2003 at 09:18 (EST)
If you haven't already found the syntax error, go ahead and e-mail your source file to support@uburst.com and we'll take a look at that.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.