Hello,
I know its long, but at least its easy to understand.
I have an if statement in a JavaScript that is working fine. It controls some parameters which go to a cgi script. The parameters of a text box (part number) get passed on to the script. The script removes spaces etc…, and basically gives out the details of what is being ordered (shaft size, connectin etc…, by reading substrings of the text box) This is working perfectly.
If the user types in an unexistant option, I can make it say “Not a valid option” in the shopping cart (cgi script) no problem, but then customer has to empty his cart and order again, annoying for him.
What I would like then is, if a wrong number is put in, how do I make a small window come up saying “Wrong number”, without it going to the cart. Then customer closes window and tries again.
Thanks is advance,
Patrick Blochle