posted 19 years ago
The only way to send a value from the client to the server is to make a request, and send the value as a request parameter.
The most common way is to either append the value to a dynamic url
ie
If you are dealing with a form, then a hidden field on the form can be used.
Normally you catch the onclick of a submit button, or onsubmit of the form, and run javascript to copy the value of the javascript variable into the hidden field before the form gets submitted.
Of course you can only pass Strings as parameters, so it does have its limitations.
Cheers,
evnafets