Can anyone help with this problem. I am attempting to dynamically draw a
graph using data from a cookie. I have written the script to actually draw
the graph, for which I hav created two arrays with the data I required
preset into them. What I wish to do is split the cookie in which the data
is stored and create two array from it.
The function used to create the cookie is as follows
:function SetCookie(name, value) {
document.cookie = name + "=" + escape(value);
}
which is called with the following script:
<body onload="SetCook ie('sales','pan 1=23,pan3=153,p an4=21,pan9=5') ">
I wish to create the following arrays by splitting the cookie:
array1=("sales" ,"pan1","pan3", "pan4","pan 9")
array2=(23,153, 21,5)
Can anyone help? Many thanks in advance.
graph using data from a cookie. I have written the script to actually draw
the graph, for which I hav created two arrays with the data I required
preset into them. What I wish to do is split the cookie in which the data
is stored and create two array from it.
The function used to create the cookie is as follows
:function SetCookie(name, value) {
document.cookie = name + "=" + escape(value);
}
which is called with the following script:
<body onload="SetCook ie('sales','pan 1=23,pan3=153,p an4=21,pan9=5') ">
I wish to create the following arrays by splitting the cookie:
array1=("sales" ,"pan1","pan3", "pan4","pan 9")
array2=(23,153, 21,5)
Can anyone help? Many thanks in advance.
Comment