Using Javascript variables

How one can use a JS variable in the ruby code?

On Jun 4, 2:37 pm, Sachin [email protected] wrote:

How one can use a JS variable in the ruby code?

Depends what you mean. if you want a link or similar to submit a
javascript variable then have a look at

Fred

Have you figured this out yet? I am looking for the same thing. How
would you set a ruby variable inside a javascript method? Say something
like this…

Thanks

On Jun 4, 11:18 pm, Chris H. [email protected]
wrote:

That’s completely impossible - client side code cannot have server
side effects (except of course via a request of some sort). If you
are trying to change what the form submits, then a classic technique
is to have a hidden field on the form that the javascript manipulates.

Fred