Set And Load Table Data With Cookie
I'm trying to learn about cookies here, but I can't seem to figure them out with tables. I want to save the data I have in a table and then be able to load the table back with that
Solution 1:
On this line in your saveTable
function, you overwrite the value set in data
data = table.rows.length + ";" + table.rows[0].cells.length + ";" + data.substring(0, data.length);
You need to add value with +=
data += table.rows.length + ";" + table.rows[0].cells.length + ";" + data.substring(0, data.length);
Post a Comment for "Set And Load Table Data With Cookie"