Getting an "unknown runtime error code 0" in IE6 on the last two lines
of the function below. Works fine in Firefox 1.5, I can't figure out
what IE is complaining about. Both "subtotal" and "totaldiv" are divs
with the respective ids, both contain only "$0" initially.
function updateprice(pac kageName) {
document.orderF orm.Subpackage. value = packageName;
var tempsub =
getSelectedRadi oValue(document .orderForm.subs cription);
var sub1 = tempsub.split(" :");
var suba = sub1[0];
var subb = sub1[1];
totalprice = document.orderF orm.seats.value * suba;
shippingprice = document.orderF orm.shipping.va lue
document.getEle mentById("total ").value = (parseInt(total price) +
parseInt(shippi ngprice));
document.orderF orm.subtotal.va lue = totalprice;
document.getEle mentById('subto tal').innerHTML = '$' + totalprice;
document.getEle mentById("total div").innerHTM L = "$" +
(parseInt(total price) + parseInt(shippi ngprice))
}
The named "subtotal" child of orderForm is getting set correctly, so
it's something about setting the innerHTML in the divs. Looked through
the groups/googled, most of what I found referenced altering table
structure, which I'm not doing.
Any thoughts?
of the function below. Works fine in Firefox 1.5, I can't figure out
what IE is complaining about. Both "subtotal" and "totaldiv" are divs
with the respective ids, both contain only "$0" initially.
function updateprice(pac kageName) {
document.orderF orm.Subpackage. value = packageName;
var tempsub =
getSelectedRadi oValue(document .orderForm.subs cription);
var sub1 = tempsub.split(" :");
var suba = sub1[0];
var subb = sub1[1];
totalprice = document.orderF orm.seats.value * suba;
shippingprice = document.orderF orm.shipping.va lue
document.getEle mentById("total ").value = (parseInt(total price) +
parseInt(shippi ngprice));
document.orderF orm.subtotal.va lue = totalprice;
document.getEle mentById('subto tal').innerHTML = '$' + totalprice;
document.getEle mentById("total div").innerHTM L = "$" +
(parseInt(total price) + parseInt(shippi ngprice))
}
The named "subtotal" child of orderForm is getting set correctly, so
it's something about setting the innerHTML in the divs. Looked through
the groups/googled, most of what I found referenced altering table
structure, which I'm not doing.
Any thoughts?
Comment