I'm trying to create an application where I have some data about each message thread, but that data Want to present in different places on page? In my list of all messages, I have the following code:
& lt; Div class = "contactThreadList" & gt; & Lt;% @ threads_data.each do | Thread | & Gt%; // Summary data about threads & lt;% end% & gt; & Lt; / Div & gt;
Then, when a user clicks on a thread, more information appears on the other side of the page, like a preview panel on Gmail or Yahoo. However, I have already loaded all the data on the page and will not have partial use to refresh the data, would it be possible to use that thread on the other side of the page? This is the code that I am thinking of:
Contact Threadlist not on the other side of the page
If I understand you correctly.
To store loaded data, you can smth like you
This will be parsed for the JS object
But if you want to have a lot of these features, then it is better to use some JS frameworks such as angler, amber, backbone :)
Comments
Post a Comment