I have this same need, but your solution is unclear to me. What I have is some JavaScript which performs validation, but I need to call a spell checker sub in VBScript before submitting. Can you clarify the syntax for calling a VBScript sub from within JavaScript? Thanks!!
<script language="vbscript">
function SpellCheck(textToSpellCheck)
'do the spell check to variable textToSpellCheck
SpellCheck=true
'if spell check is not ok
'SpellCheck=false
end function
</script>
doValidation is a java fuction that call the SpellCheck function with an text box from the form that will be submitted and see if the spellcheck is correct if is correct
return true and javascript do the submit, if not return false and not submit...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.