R
rwalrus
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(packageName) {
document.orderForm.Subpackage.value = packageName;
var tempsub =
getSelectedRadioValue(document.orderForm.subscription);
var sub1 = tempsub.split(":");
var suba = sub1[0];
var subb = sub1[1];
totalprice = document.orderForm.seats.value * suba;
shippingprice = document.orderForm.shipping.value
document.getElementById("total").value = (parseInt(totalprice) +
parseInt(shippingprice));
document.orderForm.subtotal.value = totalprice;
document.getElementById('subtotal').innerHTML = '$' + totalprice;
document.getElementById("totaldiv").innerHTML = "$" +
(parseInt(totalprice) + parseInt(shippingprice))
}
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(packageName) {
document.orderForm.Subpackage.value = packageName;
var tempsub =
getSelectedRadioValue(document.orderForm.subscription);
var sub1 = tempsub.split(":");
var suba = sub1[0];
var subb = sub1[1];
totalprice = document.orderForm.seats.value * suba;
shippingprice = document.orderForm.shipping.value
document.getElementById("total").value = (parseInt(totalprice) +
parseInt(shippingprice));
document.orderForm.subtotal.value = totalprice;
document.getElementById('subtotal').innerHTML = '$' + totalprice;
document.getElementById("totaldiv").innerHTML = "$" +
(parseInt(totalprice) + parseInt(shippingprice))
}
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?