At the server side:
function fromAndToClient(dataFromClient){ //do something with dataFromClient return dataToClient }
At the client side:
<script> document.getElementById("button").addEventListener("click",doSomething); function doSomething(){ var dataFromClient = document.getElementById("idElement").value; google.script.run.withSuccessHandler(fromServer).fromAndToClient(dataFromClient); } function fromServer(dataToClient){ // do something with dataToClient } </script>
Geen opmerkingen:
Een reactie posten