gwsoccer14
04-07-2004, 05:04 PM
For some reason I have a script that works in everything but Windows XP? I have never heard of this before. Any help?
Basically this is for a pop-up form. When the user submits the form the script empties thier cart (cookies) and refreshes the parent page. This works fine until I test it on a Windows XP machine where the code does not work at all. Has anyone else had XP Javascript Issues?
<script language="JavaScript">
<!--
function refreshParent() {
window.opener.location.href = "catalog.asp";
}
//-->
</script>
<script language="JavaScript">
<!--
function removeall() {
var numberofcookies = GetCookie ("number");
DeleteCookie ("number");
for (i=1; i < parseInt(parseInt(numberofcookies)+1); i++) {
DeleteCookie (i);
}
}
//-->
</script>
<body onUnload="refreshParent();removeall()" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
Basically this is for a pop-up form. When the user submits the form the script empties thier cart (cookies) and refreshes the parent page. This works fine until I test it on a Windows XP machine where the code does not work at all. Has anyone else had XP Javascript Issues?
<script language="JavaScript">
<!--
function refreshParent() {
window.opener.location.href = "catalog.asp";
}
//-->
</script>
<script language="JavaScript">
<!--
function removeall() {
var numberofcookies = GetCookie ("number");
DeleteCookie ("number");
for (i=1; i < parseInt(parseInt(numberofcookies)+1); i++) {
DeleteCookie (i);
}
}
//-->
</script>
<body onUnload="refreshParent();removeall()" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">