A
Aspersion
I'm building an ASP page that has a lot of text and graphics.
There is a calculation facility on the page. The user enters several
numbers in a form and presses a button to see the calculated answer.
The problem is this: when the user presses the Calculate button, the
whole page is reloaded and, on a large page, this is very noticeable.
Is there any way that I can get the calculation done and the result
displayed without reloading the whole page?
A simplified version of the page "calctest.asp" is shown below.
<!-- ignore html on usenet
<html>
<head>
<title>
This is calctest.asp
</title>
</head>
<body>
<h1>This is the test page</h1>
There are a lot of words and graphics displayed here.
<%
Var1 = trim(Request.Form("VarA"))
Var2 = trim(Request.Form("VarB"))
Var3 = Var1 * Var2
%>
<FORM Name=Calculation Action=calctest.asp Method=Post>
<input type="text" name="VarA" size="2" value=<%=Var1%>>
<input type="text" name="VarB" size="2" value=<%=Var2%>>
<input type="text" name="VarC" size="3" value=<%=Var3%>>
<INPUT Type="Submit" Value="Calculate" Name="btnSubmit">
<p>
</FORM>
</body>
</html>
end ignore html on usenet -->
There is a calculation facility on the page. The user enters several
numbers in a form and presses a button to see the calculated answer.
The problem is this: when the user presses the Calculate button, the
whole page is reloaded and, on a large page, this is very noticeable.
Is there any way that I can get the calculation done and the result
displayed without reloading the whole page?
A simplified version of the page "calctest.asp" is shown below.
<!-- ignore html on usenet
<html>
<head>
<title>
This is calctest.asp
</title>
</head>
<body>
<h1>This is the test page</h1>
There are a lot of words and graphics displayed here.
<%
Var1 = trim(Request.Form("VarA"))
Var2 = trim(Request.Form("VarB"))
Var3 = Var1 * Var2
%>
<FORM Name=Calculation Action=calctest.asp Method=Post>
<input type="text" name="VarA" size="2" value=<%=Var1%>>
<input type="text" name="VarB" size="2" value=<%=Var2%>>
<input type="text" name="VarC" size="3" value=<%=Var3%>>
<INPUT Type="Submit" Value="Calculate" Name="btnSubmit">
<p>
</FORM>
</body>
</html>
end ignore html on usenet -->