Hi ,
It might be silly Question, but i am stuck in this, please help me out.
Is it possible to pass parameters from a javascript function to a servoy function?
Actually i was trying to take input from a html text box , retrieving the content by using java-script, but i want to store these data into database. So i want to pass these data into servoy function to do so.
'<script type="text/javascript">function myFun(form){'
+'var userName = document.getElementById("username").value;'
+'var passWord = document.getElementById("password").value;'
+'alert(passWord );'
+'alert(userName );'// upto this Ok!
+'javascript:myFoo(userName,passWord);' // Is it possible like this??
+'}'
</script>
Its giving an error “myFoo is not defined”
If i use the “plugins.WebClientUtils.generateCallbackScript(myFoo,[‘“userName”’,‘“passWord”’]);” is it possible?
Is there is any other way around to do this…