Question
Javascript calling a coldfusion function
I have a page where a user will enter values into a text box.
One of the text box needs to have a warning if the user enters a
value greater than 100. I have writen javascript for this.
<script type="text/javascript">
function QConfirm(whichDest){
var ConfirmResult = confirm("Ok?");
if(ConfirmResult){
saveForm(whichDest);
} else {
alert("Please change you data?");
}
}
</script>
The confirm box pops up with out any issues. The problem is I have a a cold fusion script on the same page caled saveForm that I would like the javascript to call it the user selects ok. Is there a way this can be done?
<script type="text/javascript">
function QConfirm(whichDest){
var ConfirmResult = confirm("Ok?");
if(ConfirmResult){
saveForm(whichDest);
} else {
alert("Please change you data?");
}
}
</script>
The confirm box pops up with out any issues. The problem is I have a a cold fusion script on the same page caled saveForm that I would like the javascript to call it the user selects ok. Is there a way this can be done?