Re: How to pass a variable from Javascript code to Java

2018-08-29 Thread heph estos
And how about storing the value to a session or a cookie from javascript and reading from java server through an implemantation of observer parttern? It would work in any case, in any framework. Στις Τετ, 29 Αυγ 2018, 2:39 μ.μ. ο χρήστης marwa hussein < marwa.huss...@gmail.com> έγραψε: > Hi, > Th

Re: How to pass a variable from Javascript code to Java

2018-08-29 Thread marwa hussein
Hi, Thank you all for guiding me to the solution especially "Numa" .. and this is how I solved it: for the .tml and in the JS JQuery file, I passed the variable in a JSON object --> data: {myData:dataToSend} $('#myId').click(function() { var dataToSend= $('#myId').data('mydata'); ajax('answer',