Click to See Complete Forum and Search --> : a problem with cookie's


pelegk1
06-22-2003, 09:35 AM
i wrote this code :
theC="myData=";
theC+="RegionsSelector:"+document.F1.RegionsSelector.selectedIndex+"&";
BranchSelectorList[BranchSelectorList.length]=-1;
theC+="BranchSelectorList:"+BranchSelectorList+"&";
theC+="SpecializationSelector:"+document.F1.SpecializationSelector.selectedIndex+"&";
theC+="SpecificDR:"+document.F1.SpecificDR.checked+"&";
theC+="drSearchName:"+document.F1.drSearchName.value+"&";
theC+="FROM_TIME:"+document.F1.FROM_TIME.selectedIndex+"&";
theC+="TO_TIME:"+document.F1.TO_TIME.selectedIndex+"&";
theC+="FROM_DATE:"+document.F1.FROM_DATE.value+"&";
theC+="TO_DATE:"+document.F1.TO_DATE.value+"&";
theC+="DaysSelected:";
for (i=0;i<document.F1.WEEK_DAY.length; ++i) {
theC+=document.F1.WEEK_DAY[i].checked+",";
}
theC+="; expires=" + d.toGMTString() + "; path=/;";
alert("theC : "+theC);
document.cookie = theC;


and in the cookie i got this :
myData
RegionsSelector:2&BranchSelectorList:2,4,-1&SpecializationSelector:3&SpecificDR:false&drSearchName:&FROM_TIME:4&TO_TIME:28&FROM_DATE:22/06/2003&TO_DATE:06/07/2003&DaysSelected:true,false,false,false,false,false,false,false,
leumitdv/
0
2010518400
29571475
1455344896
29571274
*

when i parse this using a code i got from this site i have this problem:
1) isnt it suppose to be written in the cookie : "myData=......"
and not "myDataRegionsSelector....."
2)i think- beacuse it written like aboe (1) when i try in the parsing to access "RegionsSelector" i get undefined!!!!
what to do?
thanks in advance
Peleg

pelegk1
06-22-2003, 10:11 AM
i didnt find anything for that in the functions?
or i neeed to write 1 of my own?
thanks in advance
Peleg