[thelist] javascript return problem

Casey Crookston casey at thecrookstons.com
Wed Jul 7 16:19:36 CDT 2004


Hi all,

A client is using a script:

<script language="JavaScript" type="text/javascript">
<!--
function gopage3() {
if (document.MMdropdown.choice.selectedIndex==0) return;
if (document.MMdropdown.choice.selectedIndex==1) {
window.location.href="http://www.goemerchant7.com/index.cgi?ST=buy&Action=ad
d&Merchant=chchemical&ItemNumber=MM2OZ"; }
if (document.MMdropdown.choice.selectedIndex==2) {
window.location.href="http://www.goemerchant7.com/index.cgi?ST=buy&Action=ad
d&Merchant=chchemical&ItemNumber=MM8OZ"; }
if (document.MMdropdown.choice.selectedIndex==3) {
window.location.href="http://www.goemerchant7.com/index.cgi?ST=buy&Action=ad
d&Merchant=chchemical&ItemNumber=MM32OZ"; }
if (document.MMdropdown.choice.selectedIndex==4) {
window.location.href="http://www.goemerchant7.com/index.cgi?ST=buy&Action=ad
d&Merchant=chchemical&ItemNumber=MMGAL"; }
}
// -->
</script>

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
said:

"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?

Thanks!




More information about the thelist mailing list