[jQuery] Re: problem with cookie plugin when trying to store array object in cookie

2007-09-25 Thread Benjamin Sterling
Do you have a live version I can look at? On 9/25/07, Potluri <[EMAIL PROTECTED]> wrote: > > > > I very much understood what you said and tried it. but I'm getting null > value > from cookie > var tempRows = new Array(); > tempRows.push({name:"vj",rollNo:10}); > tempRows.push({name:"vj",ro

[jQuery] Re: problem with cookie plugin when trying to store array object in cookie

2007-09-25 Thread Potluri
I very much understood what you said and tried it. but I'm getting null value from cookie var tempRows = new Array(); tempRows.push({name:"vj",rollNo:10}); tempRows.push({name:"vj",rollNo:10}); var v = objectToQueryString(tempRows,"&"); alert(v); // which prints _name##"vj"**rollNo##1

[jQuery] Re: problem with cookie plugin when trying to store array object in cookie

2007-09-25 Thread Benjamin Sterling
I have a variable $sitedata, an object, that is structured like: { 'fname':null, 'lname':null, moduleLevel: { bPassed: null, bContentComplete: null, iNumAttempts: null, dDateStart: month + "/" + day + "/" + year,//"6/25/2007", dDateEnd: null,

[jQuery] Re: problem with cookie plugin when trying to store array object in cookie

2007-09-25 Thread Potluri
Thanks for your great help. But I'm finding hard to know the exact syntax of how to use these functions. Can you tell me exact syntax of how to use these functions objectToQueryString and the function queryStringToObject given the array name "arrObject" which contains array of objects. Waitin

[jQuery] Re: problem with cookie plugin when trying to store array object in cookie

2007-09-25 Thread Benjamin Sterling
You can't store an Object/Array into a cookie, you will get the result you are currently seeing. The code I provided with convert your object into a querystring, which can be stored, and stores that and when you want to retrieve it, you pass the returned cookie value to the other function and it c

[jQuery] Re: problem with cookie plugin when trying to store array object in cookie

2007-09-25 Thread Potluri
Sorry I didn't understand what you are trying to say. How this solves my problem of storing array of objects into the cookie. Can you try on your side of storing array of objects into cookie, so that later when I try to to retrive value from cookie I need to get array of objects but not string wh

[jQuery] Re: problem with cookie plugin when trying to store array object in cookie

2007-09-25 Thread Benjamin Sterling
Vij, I am actually using the following functions in an app that uses the cookie plugin: /** * @name sterilizeQueryString * @type function * @param {String} input * @desc Turns a query string into an object * @return Object b */ sterilizeQueryString = function(input,splitt