[jQuery] Cookie management with jquery and json

[jQuery] Cookie management with jquery and json


Hi People,
I would like to know whether some of you have information about cookie
management with jquery and json. In fact, for the moment, I have a
function that returns a js hash table containing information about
each box ( its column number and rank in the column) on my page. The
boxes are draggable.
For instance :
temp["news"] = [2,3] => This means that the div with name news is
found on the second column and is in the 3rd position in that column.
So I would like to store this information in a cookie, to get back the
layout of a particular user. And my problem is that I would like to
find a function that encodes the hash table in a json object and
eventually, the JsonObject into jsontext, to be saved in a cookie.
I tried to use www.json.org/json.js but I have much errors on the
onload of my page, even though I haven't implemented the functions.
Thanks in advance,
Joel