Hi
I have a legacy website working in IE however it doesn't work Chrome or Firefox it written in ASP there is some jscript. There must be some terms that are not recognized in Firefox or Chrome - Could someone pint me in the right direction. Code below - Thanks for your input Todd
my test - alert('Hello, ' + ProductID); only works in IE
jscript ----
function addProduct(ProductID, ProductType) {
answer = confirm("This item will be added to your shopping cart\n\nClick OK to add to your Cart\nClick CANCEL to go back");
if (answer) {
//alert("additem.asp?ProductID=" + ProductID);
if (document.all) {
if (ProductType=='Bear') {
BearCertWindow=window.open('/birthcert.asp?ProductID='+ProductID,'400x500','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=640,height=440');BearCertWindow.focus();
}
alert('Hello, ' + ProductID);
document.frames.hiddenframe.document.location = "/shop/additem.asp?ProductID=" + ProductID
} else {
if (ProductType=='Bear') {
BearCertWindow=window.open('/birthcert.asp?ProductID='+ProductID,'400x500','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=640,height=440');BearCertWindow.focus();
}
document.layers.hiddenframe.src = "/shop/additem.asp?ProductID=" + ProductID
}
}
}
The page additem.asp --- only includes
<%@ Language=VBScript %>
<!-- #include virtual="/_include/connection.asp" -->
<%
comm.CommandText = "SP_AddItem"
comm("@CartID") = Request.Cookies("CartID")
comm("@ProductID") = cint(request("ProductID"))
comm("@ExtraInfo") = ""
comm.Execute
Response.Redirect "/shop/carttotal.asp?TempID=" & server.URLEncode(now)
%>
I have a legacy website working in IE however it doesn't work Chrome or Firefox it written in ASP there is some jscript. There must be some terms that are not recognized in Firefox or Chrome - Could someone pint me in the right direction. Code below - Thanks for your input Todd
my test - alert('Hello, ' + ProductID); only works in IE
jscript ----
function addProduct(ProductID, ProductType) {
answer = confirm("This item will be added to your shopping cart\n\nClick OK to add to your Cart\nClick CANCEL to go back");
if (answer) {
//alert("additem.asp?ProductID=" + ProductID);
if (document.all) {
if (ProductType=='Bear') {
BearCertWindow=window.open('/birthcert.asp?ProductID='+ProductID,'400x500','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=640,height=440');BearCertWindow.focus();
}
alert('Hello, ' + ProductID);
document.frames.hiddenframe.document.location = "/shop/additem.asp?ProductID=" + ProductID
} else {
if (ProductType=='Bear') {
BearCertWindow=window.open('/birthcert.asp?ProductID='+ProductID,'400x500','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=640,height=440');BearCertWindow.focus();
}
document.layers.hiddenframe.src = "/shop/additem.asp?ProductID=" + ProductID
}
}
}
The page additem.asp --- only includes
<%@ Language=VBScript %>
<!-- #include virtual="/_include/connection.asp" -->
<%
comm.CommandText = "SP_AddItem"
comm("@CartID") = Request.Cookies("CartID")
comm("@ProductID") = cint(request("ProductID"))
comm("@ExtraInfo") = ""
comm.Execute
Response.Redirect "/shop/carttotal.asp?TempID=" & server.URLEncode(now)
%>