I am trying to build a web application, where most of the data is to
be stored on client side because data changes very often. Only when user
presses submit data, data stored on client side should be pushed to
How to store data on client side? How to retrieve data from server
on submit(no forms).
Data to be stored on client side is ActiveRecord retrieved from
I need to store a variables (nested hashmap) on client side and data
in hashmap changes very frequently. When user clicks submit button, data
has to be pushed to server.
and when user clicks submit send the hash table as “data” field in ajax
I am trying find the best solution in this case, even json object looks
json object as rails renders json object.
json can be passed as data field in ajax.
Is there a question in the statement above? If so it is not clear
what the question is.
I have to store nested hashmap on client side, which is the best way
to store nested hashmap on client side. Values inside activerecord
change in client side. When submit button is pressed, hashmap has to be
sent to server through ajax.
Please quote the message you are responding to when replying so that
we know which message you are replying to. There is no point just
repeatedly making the same statement again and again. Praveen made a
suggestion and you have not responded to it as far as I can see.
processing on the client side. Are you familiar with the use of
with a particular point on how to interface between rails and
Also if you do not know about using the session for storing moderate
amounts of data look up how to use that in rails, it may be useful for
Depends on what your data is used for.
If your data needs to be shared among sessions, local storage of html5 would be an option.
If not, global variable can meet your requirements. I guess.