Hi - apologies for ASP newbie question.
I have a form which has two fields, "details" and "score", the first
of which can be edited by the user and the second of which is hidden.
When "details" is updated, I need to update "score" and then call a
javascript routine to do some client-side calculations using "score".
I was going to use ASP to search a text file containing the
corresponding values (there are thousands) of "details" and "score",
and then return a value into the hidden "score" field in my form.
e.g.
<form name="stuff" action="">
Details: <input type="text" name="details" value=""
onchange="docalculation()">
<input type="hidden" name="score" value=0>
</form>
<script language="JavaScript" type="text/JavaScript">
function docalculation(){
var num = document.stuff.score.value;
num += 42;
alert("The answer is "+num);
}
</script>
Not sure how to call the ASP routine though and get it to return a new
value of score. Don't want to refresh the page and need the score to
automatically update whenever the details field is changed.
Thanks
Roo