On my 5800 I have some local pages which read and set cookies using javascript.
I noticed that these pages do not handle the cookies while the cookies in the browser are enabled.
I have FW 21.0.0125 (reflashed 14 May).
So I made a test page (attached, rename the .log extension to .html and listed below) which gets a cookie with the current time in it and alerts it and then saves the (new) current time in it which means that it should alert the time of the previous opening of the page (the first time it is empty).
But the 5800 broser always pops up a blank alert not only the first time. No other browser (including the E70 builtin browser) has this problem.
Anyone knows about this or has a workaround ?
Thanks a lot.
<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body>
<script type="text/javascript">
function getcookievalue(name)
{
var ind;
name += '=';
str = document.cookie;
if ((ind = str.indexOf(name)) != -1)
{
var end = str.indexOf(';', ind);
if (end == -1) end = str.length;
str = str.substr(ind+name.length, end-ind-name.length);
str = unescape(str);
return str;
}
return '';
}
function setcookievalue(name, value)
{
name += '=';
var expDays = 100;
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
var expire = '; expires=' + exp.toGMTString();
var str = name + escape(value) + expire;
document.cookie = str;
}
alert(getcookievalue('test'));
setcookievalue('test', new Date());
</script>
</body>
</html>
Nokia 5800
FW 30.0.011