S
sun
In Javascript, I write to document.cookie, and retrieve it in server
side.
It's in a treenode control, when the node is expanded, I write
document.cookie:
if(subTree.style.display == 'inline')
{
icon.src = icon.CollaspedSrc;
e.src = e.CollaspedSrc;
sign.src = sign.CollaspedSrc;
subTree.style.display = 'none';
}
else
{
document.cookie = 'category=' + catid;
icon.src = icon.CollaspedSrc;
e.src = e.ExpandedSrc;
sign.src = sign.ExpandedSrc;
subTree.style.display = 'inline';
}
There is no problem with retrieving the cookie. The problem is when
expanding the tree, the whole screen flashes.
How to stop it from flashing?
side.
It's in a treenode control, when the node is expanded, I write
document.cookie:
if(subTree.style.display == 'inline')
{
icon.src = icon.CollaspedSrc;
e.src = e.CollaspedSrc;
sign.src = sign.CollaspedSrc;
subTree.style.display = 'none';
}
else
{
document.cookie = 'category=' + catid;
icon.src = icon.CollaspedSrc;
e.src = e.ExpandedSrc;
sign.src = sign.ExpandedSrc;
subTree.style.display = 'inline';
}
There is no problem with retrieving the cookie. The problem is when
expanding the tree, the whole screen flashes.
How to stop it from flashing?