Greetings Monks,
I ask this question in little trepidation. This is not entirely related to perl. Since I use perl to generate this, I feel I can ask this question here.
For my latest project, Im using Apache + mod_per. Im also using CGI::Application with Html::Template for a proper MVC architecture. One of the commonly repeating page is a tree view. This tree is generated via asynchronous javascript call to the server.
This in itself is smooth and fast. However, I need to retain the user expanded tree view, when the page reloads (may be because the user has submitted the parent page etc). I tried to solve this by storing the expanded section's id in a cookie and while re-generating the tree view, I check the sections against the id's stored in the cookie and expand those. But this turned out to be slow. Can any one point me in the right direction to solve this problem ?