www.uburst.com www.uburst.com

"java script not working in IE but is in Netscape"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

Problems with trying to place orders.
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"java script not working in IE but is in Netscape"
Posted by Lori Bannon on Feb-07-03 at 05:21 PM (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

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: java script not working in IE b..., Bill Weiner, Feb-10-03, (1)
java script not working in IE but i..., Microburst Support Team, Feb-11-03, (2)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: java script not working in IE but is in Netscape"
Posted by Bill Weiner on Feb-10-03 at 07:43 AM (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.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "java script not working in IE but is in Netscape"
Posted by Microburst Support Team on Feb-11-03 at 09:18 AM (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.
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.