I am not good at javascript at all and have a client who uses a Perl
shopping cart (not my choice but I'm stuck with it)

The client prices an item by the thousands with a minimum order of 1,500 but
once above that number you can order however you want. Here's my problem I
have validation that the order is over 1500 items but I need to pass to the
cart the number in the format of 1.5 for 1500 instead of 1500. The pricing
is passed via a hidden field (hate this cart) so I figured I'd just divide
the per thousand price by 1000 and pass the decimal value but the cart
rounds the decimal off at 2 places so that doesn't work. I don't trust that
people will put in the correct decimal values (aka 1.5 for 1500) so
validating against 1.5 doesn't seem a good idea.

So I need to validate the number then convert the quantity to a decimal and
I'm stuck. If it were server side language I knew and wasn't a commercial
Perl cart I'd simply do the calculation on the server and be done with it. 

Personally 1'd just as soon limit it to increments of 1000 but the client
wants it otherwise, sigh.

Cheryl D. Wise
Certified Professional Web Developer
MS-MVP-FrontPage
www.wiserways.com
mailto:[EMAIL PROTECTED]
713.353.0139 Office


____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to