H
Husain
Hello.
I have a button on a form which goes to a function validate in
javascript as shown below:
<input type="button" name="<%= i%>" value="Edit"
onclick="validate(this.name)">
The javascript:
<script language="javascript">
var Action="";
function validate(Action){
var actstring = Action.toString();
ivalue = parseInt(actstring);
return confirm('Ok for this action : '+ivalue+' ?'); //this is to
test
}
</script>
I am changing the ivalue to an integer which eventually will access an
array built on the same page but using JSP. How can I pass the ivalue
back to the JSP?
Thank you.
I have a button on a form which goes to a function validate in
javascript as shown below:
<input type="button" name="<%= i%>" value="Edit"
onclick="validate(this.name)">
The javascript:
<script language="javascript">
var Action="";
function validate(Action){
var actstring = Action.toString();
ivalue = parseInt(actstring);
return confirm('Ok for this action : '+ivalue+' ?'); //this is to
test
}
</script>
I am changing the ivalue to an integer which eventually will access an
array built on the same page but using JSP. How can I pass the ivalue
back to the JSP?
Thank you.