I am looking for a way to update ruby global variables in javascript.
Say I have two values defined: <%@value1=[]%> <%@value2=[]%>, both equal to blank arrays. How can I updates these array using javascript?
Thank you. Please let me know if I wasn't clear enough.
<%@value1=[]%>compiled on the server to the js code. You cant update it on the client side.