Answered
checking javascript and Isdefined tab
I would like to have some client side javascript validate
first then run a SQL stored procedure next, but only IF the
javascript evaluates to true. Currenly, I have some code like:
<cfif IsDefined("Form.submit")>
run stored procedure
<cfelse>
show form
</cfif>
What's happening is my java is firing, but then the form runs the SP and I don't want that to occur UNLESS the java evaluates to true. I was just wondering if this is something syntactically I should do in the cold fusion side or in the javascript side?
Thanks,
Phil
<cfif IsDefined("Form.submit")>
run stored procedure
<cfelse>
show form
</cfif>
What's happening is my java is firing, but then the form runs the SP and I don't want that to occur UNLESS the java evaluates to true. I was just wondering if this is something syntactically I should do in the cold fusion side or in the javascript side?
Thanks,
Phil
