[thelist] javascript return problem

Edwin Martin edwin at bitstorm.org
Wed Jul 7 17:18:23 CDT 2004

Casey Crookston wrote:

>A client is using a script:
It will work when you do it the easy way. (Why going for the hard way? I 
don't see why that's neccesary).

Just make a form like this:

<form action="http://www.goemerchant7.com/index.cgi">
<input type="hidden" name="ST" value="buy">
<input type="hidden" name="Merchant" value="chchemical">
<select name="ItemNumber">
<option value="MM2OZ">2 oz. Spray $4.25</option>
... enz.
<input type="submit" name="Action" value="add">

Easy, isn't it?

If this is not what you want, what do you want?

Edwin Martin

><script language="JavaScript" type="text/javascript">
>function gopage3() {
>if (document.MMdropdown.choice.selectedIndex==0) return;
>if (document.MMdropdown.choice.selectedIndex==1) {
>d&Merchant=chchemical&ItemNumber=MM2OZ"; }
>if (document.MMdropdown.choice.selectedIndex==2) {
>d&Merchant=chchemical&ItemNumber=MM8OZ"; }
>if (document.MMdropdown.choice.selectedIndex==3) {
>d&Merchant=chchemical&ItemNumber=MM32OZ"; }
>if (document.MMdropdown.choice.selectedIndex==4) {
>d&Merchant=chchemical&ItemNumber=MMGAL"; }
>// -->
>to link to a shopping cart service from a form:
>         <form name="MMdropdown">
>           <select name="choice"class="txt_8">
>             <option selected value=0>--&nbsp; Select Size &nbsp;--</option>
>             <option value=1>2 oz. Spray $4.25</option>
>             <option value=2>8 oz. Spray $7.95</option>
>             <option value=3>32 oz. Spray $25.00</option>
>             <option value=4>Gallon $75.00</option>
>        </select>
>          <input type="button" class="txt_8" value="Add To Cart"
>onClick="gopage3()" />
>       </form>
>Here's the problem:
>On the shopping cart page, there is a Keep Shopping link.  This link works
>fine in Netscape, but not in IE.  Weird.  Here's what their tech support
>"The way they are sending the customer to their cart using javascript
>(whether it be window.href or window.open), it is eliminating the referrer
>url in IE, but in Netscape treats opening a window different than in IE and
>maintains the referrer status."
>Any thoughts?


More information about the thelist mailing list