I am trying to set a ruby instance variable's value to the latitude and longitude values.How would you set the value of an instance variable inside a javascript function?Something like this?\[code\]<script> if (geoPosition.init()){ geoPosition.getCurrentPosition(geoSuccess, geoError); } function geoSuccess(p) { <% @lat_lng = p.coords.latidude + "," + p.coords.longitude %> } function geoError(){ alert("No Location: Won't be able to use Maps functionality"); }</script>\[/code\]Something is telling me I need json.