Forum Moderators: open
Any ideas?
Here's my code
function set_cart_cookie()
{
var product_number;
var product_generic_name;
var product_specific_name;
var product_price;
var product_quantity;
var lineitem= "";
var counts="";
var today = new Date();
var expires = new Date();
expires.setTime(today.getTime() + 1000*60*60*24*5);
var expiration_date = expires.toGMTString();
for(var i = 0; i < optarray.length; i ++)
{
product_number = optarray[i];
product_generic_name = prodnamearray[i];
product_specific_name = prodarray[i];
product_price = pricearray[i];
product_quantity = quantarray[i];
if(product_number!= null)
{lineitem += product_number + "¦" + product_generic_name + "¦" + product_specific_name + "¦" + product_price + "¦" + product_quantity + "eol";}
}
var liandstate = lineitem + "info" + state_selected+"info"+cart_total;
if((liandstate.indexOf("info info0")) == -1)
{
var cookie_info = "domaininfo=" + escape(liandstate);
cookie_info = cookie_info + ";expires="+expiration_date+ "; path=/; domain= .mydomainname.com;";//
}
else
{cookie_info = "domaininfo=domaininfo" + ";";}
document.cookie = cookie_info;
}
I just don't get it.
<update>After more testing, again, not extensive, it appears that events triggered onunload of a page are going to be a problem. It has broken code on several of our sites. Good place to start looking if you find your site is having difficulties in Internet Explorer 6 for Win XP Service Pack 2.</update>
Maybe MS's Mac IE people worked on the update seeings how they are no longer working on Mac IE...