Ruby variable = javascript variable?

Is there a way to store the value of a js variable in a ruby variable?
The reason I ask is because, for example, when a google maps api
returns the result of let’s say the location on the map, it returns it
in a js variable. I need to get the value from that variable to be
stored in a ruby variable. Is there a way in which I can do that?
Thanks.

On May 14, 4:01 pm, semi [email protected] wrote:

Is there a way to store the value of a js variable in a ruby variable?
The reason I ask is because, for example, when a google maps api
returns the result of let’s say the location on the map, it returns it
in a js variable. I need to get the value from that variable to be
stored in a ruby variable. Is there a way in which I can do that?

make an http request to your app (either an ajax request or a more
traditional form submission)

Fred

On May 14, 11:33 am, Frederick C. [email protected]
wrote:

make an http request to your app (either an ajax request or a more
traditional form submission)

Fred

Thanks for the idea. I did something like this, but the page keeps
reloading over and over:

<%= params[:keyword] %>

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs