Happy New Year ...
I am using the following code to remember the values of forms. This works in IE, when I come back to the form all the values are set to the last entry value, that is what I want.
I know the cookies are being set in NN6 as I can see the values by looking in the cookie manager, however, in NN6 the form values are not reset when the user comes back to the page as they are in IE.
This function is called onLoad in the body tag of the HTML doc. ....
any thoughts ???
much appreciated ....
I am using the following code to remember the values of forms. This works in IE, when I come back to the form all the values are set to the last entry value, that is what I want.
I know the cookies are being set in NN6 as I can see the values by looking in the cookie manager, however, in NN6 the form values are not reset when the user comes back to the page as they are in IE.
This function is called onLoad in the body tag of the HTML doc. ....
any thoughts ???
much appreciated ....
Code:
function initForm(currentForm)
{
with(currentForm)
{
formElements = elements.length
for(var i=0; i < formElements; i++)
{
var name = elements[i].name;
value = getCookie(name);
if(value != null)
{
elements[i].value = value;
}
}//for
}//with
}//initForm