i want to store for example a <table> (node of my DOM – build up with HTML5) using JS/JQuery. Why?
i like to renew the table but store the old table with the contained values in it. i think it would later be quick to replace an existing table (node) with an stored, than to build it up again and parse the old data.
(parse data > build table ; rewnew table: parse new data > store old table > replace old by new; later: replace new by old table)
if found for example that problem: Chrome sendrequest error: TypeError: Converting circular structure to JSON
(i tried also to convert my table via JSON save it in given localStorage)
is it recommend to store such a DOM-node in a variable or localstorage?
I’m glad for any advice.
You can store your dom in variables.
Local Storage api is not work on older browsers if you want to store your dom tree on the client side you can use cookies but I don’t recomend it.