WhiteTiger
Programmer
I dont use javascript much, but I'm using it to write cookies for office documents that need to be saved...
Right now, I have these functions...
function SaveForm() {
SetCookie ('t1', document.myform.t1.value);
SetCookie ('t2', document.myform.t2.value);
SetCookie ('t3', document.myform.t3.value);
}
function WriteCookie() {
document.myform.t1.value = GetCookie('t1');
document.myform.t2.value = GetCookie('t2');
document.myform.t3.value = GetCookie('t3');
}
How can I get it to loop through these (going 1 through 9), pick up the document.myform.tX.value with X being variable?...and same with get write cookie function... Regards,
Anth
ny
Right now, I have these functions...
function SaveForm() {
SetCookie ('t1', document.myform.t1.value);
SetCookie ('t2', document.myform.t2.value);
SetCookie ('t3', document.myform.t3.value);
}
function WriteCookie() {
document.myform.t1.value = GetCookie('t1');
document.myform.t2.value = GetCookie('t2');
document.myform.t3.value = GetCookie('t3');
}
How can I get it to loop through these (going 1 through 9), pick up the document.myform.tX.value with X being variable?...and same with get write cookie function... Regards,
Anth