Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

factoring calculator

Status
Not open for further replies.

researchafricana

Technical User
Dec 23, 2003
1
NG
Please can someone show me how to design the factoring calculator form at I have designed the html page where you enter the figures but I cannot deisgn the page that the results will appear in.

Thank you.
 
not sure what you want. you typically never leave the page with calculators but just resubmit to itself on each event or user entry. although ASP wouldn't be the best for a calculator. I would use a client level scripting langauge like javascrit.

if you do want ASP then all you need to do is set the form fields to have a value with the form object
eg:
<input type=&quot;text&quot; name=&quot;cost&quot; value=&quot;<%=request.form(&quot;cost&quot;)%>&quot;>

then have a onBlur event along with the submit button to do that auto update feature in that specific link. along with a hidden field to catch the submission
so
<input type=&quot;text&quot; name=&quot;cost&quot; value=&quot;<%=request.form(&quot;cost&quot;)%>&quot; onBlur=&quot;submitFrm()&quot;>

javascript comes in as
function submitFrm() {
document.submission.value = &quot;yes&quot;;
document.formname.submit();
}

then in the initial read of the page do some calc's
<%
If Request.Form(&quot;submission&quot;) <> &quot;&quot; Then
calculator the values given a value passed
Else
%>
load the form again (all the HTML)
<%
End If
%>

and so on with each field.

_____________________________________________________________________
onpnt2.gif

Hakuna matata!!
 
by the way: that site uses javascript to do the calculations

_____________________________________________________________________
onpnt2.gif

Hakuna matata!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top