Page 1 of 1

Works fine on IE and Not on FF

Posted: Tue Jan 26, 2010 2:08 am
by egturnkey
Hello friends,

I've simple cart script where a button once visitor click on it,it send the item to the cart

It works fine on IE and not working on FF due to something called append_cookie

here is the code

Code: Select all

 
<?
} else if ($productrow['type'] == 0 && (!$isMember && !$isAdmin)) {
echo "<b>Member Download Only</b>";
} else if ($productrow['type'] == 1 || $productrow['type'] == 2) {
echo "<a href='#' onclick='append_cookie(\"cartcontent\", \"".$productrow['productID']."\", \"\")'>";
echo "<img src='$addtocart_button' border=0>";
echo "</a>";
echo "<a href='#' onclick='append_cookie(\"cartcontent\", \"".$productrow['productID']."\", \"\");self.location.replace(\"".FILE_INDEX."?action=checkout\")'>";
echo "<img src='$buy_button' border=0>";
echo "</a>";
}
} else {
echo "<img src='$na_button' border=0>";
}
?>
 

Re: Works fine on IE and Not on FF

Posted: Tue Jan 26, 2010 2:23 am
by egturnkey
i found the error using firefox error viewer

Image

but i don't know how to define it :banghead:

here is the js file also may helps

Code: Select all

http://www.manalnor.com/misc.js
thanks