Ello there,
I\'m trying to assign the value of a javascript variable to a java variable. But I don\'t have clue how to do this? Say for example I have this:
Java script plays on browser where java code is server side thing so you can't simply do this.
What you can do is submit the calculated variable from javascript to server by form-submission, or using URL parameter or using AJAX calls and then you can make it available on server
HTML
make sure this fields lays under
Javascript
document.getElementById("hiddenField").value=yourCalculatedVariable;
on server you would get this as a part of request