I know very little about Javacript.
As far as I can tell ---- this code reads data from a cookie and populates a picksheet.
function rePickIt(){
//alert(document.cookie)
thePicks = new Array();
if(allPicks=(document.cookie+';').match(/allPicks=(.+)\;/)){
allPicks=unescape(allPicks[1]).split(',')
for(i=0;i<allPicks.length;i++)
if(pick=allPicks[i].match(/pick(\d+)=(\d+)/)){
thePicks[pick[1]]=pick[2];
//alert(pick[1]+': '+pick[2])
}
for(p=0;p<thePicks.length;p++)
if(thePicks[p]){
PickIt(p, thePicks[p])
//alert(p+'>>'+ thePicks[p])
}
}
}
What I want to do is add a piece of code that would stop the populating after the 32nd pick.
It can have a total of 63 picks.
If there are less in the cookie ( it could have any number between 1 and 63) that is not a problem.
I have attached the "ccokie" file that it reads.
Please help.
As far as I can tell ---- this code reads data from a cookie and populates a picksheet.
function rePickIt(){
//alert(document.cookie)
thePicks = new Array();
if(allPicks=(document.cookie+';').match(/allPicks=(.+)\;/)){
allPicks=unescape(allPicks[1]).split(',')
for(i=0;i<allPicks.length;i++)
if(pick=allPicks[i].match(/pick(\d+)=(\d+)/)){
thePicks[pick[1]]=pick[2];
//alert(pick[1]+': '+pick[2])
}
for(p=0;p<thePicks.length;p++)
if(thePicks[p]){
PickIt(p, thePicks[p])
//alert(p+'>>'+ thePicks[p])
}
}
}
What I want to do is add a piece of code that would stop the populating after the 32nd pick.
It can have a total of 63 picks.
If there are less in the cookie ( it could have any number between 1 and 63) that is not a problem.
I have attached the "ccokie" file that it reads.
Please help.
Comment