Hi all,
I have the following javascript in a asp file.
<script language="JavaScript">
<!--
window.onload=function() {
if (<%=inumberofQuoted %> != 0) {
//alert(parseInt(<%=inumberofQuoted %>));
<%for k=0 to inumberofQuoted -1 %>
//alert("I am here");
//alert(<%=k%>);
//alert(document.getElementById("<%=aQuoteName(k)%>Premium"));
document.getElementById("<%=aQuoteName(k)%>Premium").innerHTML='$'+parseFloat(<%=Participant(k)("Basic")%>);
//alert('<%=aQuoteName(k)&"Premium"%>');
//alert(parseFloat(<%=Participant(k)("Basic")%>));
<%Next%>
alert("<%=sSelectPlus%>");
alert(parseFloat(<%=iTotalofSelectPlus%>));
alert(parseFloat(<%=iTotalDue%>));
document.getElementById("SelectPlus").innerHTML='$'+parseFloat(<%=iTotalofSelectPlus%>);
document.getElementById("TotalPayment").innerHTML='$'+parseFloat(<%=iTotalDue%>);
}
}
//-->
</script>
In firefox, it can display innerHTML correctly without any problem. But when I tested in IE, it can display premium fine, but it cannot display "iTotalofSelectPlus" and "itotalDue". Can you help?
My testing link is
Thank you
But
I have the following javascript in a asp file.
<script language="JavaScript">
<!--
window.onload=function() {
if (<%=inumberofQuoted %> != 0) {
//alert(parseInt(<%=inumberofQuoted %>));
<%for k=0 to inumberofQuoted -1 %>
//alert("I am here");
//alert(<%=k%>);
//alert(document.getElementById("<%=aQuoteName(k)%>Premium"));
document.getElementById("<%=aQuoteName(k)%>Premium").innerHTML='$'+parseFloat(<%=Participant(k)("Basic")%>);
//alert('<%=aQuoteName(k)&"Premium"%>');
//alert(parseFloat(<%=Participant(k)("Basic")%>));
<%Next%>
alert("<%=sSelectPlus%>");
alert(parseFloat(<%=iTotalofSelectPlus%>));
alert(parseFloat(<%=iTotalDue%>));
document.getElementById("SelectPlus").innerHTML='$'+parseFloat(<%=iTotalofSelectPlus%>);
document.getElementById("TotalPayment").innerHTML='$'+parseFloat(<%=iTotalDue%>);
}
}
//-->
</script>
In firefox, it can display innerHTML correctly without any problem. But when I tested in IE, it can display premium fine, but it cannot display "iTotalofSelectPlus" and "itotalDue". Can you help?
My testing link is
Thank you
But