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

marwa hussein <[email protected]>
Newsgroups gmane.comp.java.tapestry.user
Message-ID <CADyy3OM+cA17=S5onZX5cppOUajaStXyuqRN8od3LJGFsaOOdg@mail.gmail.com>
Hello,

Thanks all for your suggestions. I followed the example shown in
https://tapestry.apache.org/ajax-and-zones.html in "Invoking server-side
event handler methods from JavaScript"   but here the event is in the java
code "server-side" and is invoked from the Javascript code "onClick()" ,
but what I want is the opposite direction, sending a "string variable" from
a tag appended in  the clientside javascript code to the java code "in the
serverside".
For now, I will test to use hidden input (although I didn't want to use a
form submit) and I will see if I can make it or not ...

Thank you all for your help and valuable suggestions, and of course, if
anyone face the same problem before and could give me hints to how to do it
please tell me.
Regards,
Marwa
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.