Forum Moderators: open

Message Too Old, No Replies

Changing pages in another frame!

         

Etarwin

4:00 pm on Apr 20, 2005 (gmt 0)

10+ Year Member



Hi, what is wrong with the following code? the function do not change the frame pages.

function FoldersTree()
{
var x = readCookie('FoldersTree')

eraseCookie('FoldersTree');
if (x=='off'){
createCookie('FoldersTree','on',355);
window.parent.frames['leftFrame'].document.location.href='iframeexplorer.asp';
//alert('on');
}
else
{
createCookie('FoldersTree','off',355);
window.parent.frames['leftFrame'].document.location.href='left.asp';
}
return null;
}

orion_rus

4:07 pm on Apr 21, 2005 (gmt 0)

10+ Year Member



it seems what this function should be placed into the child frame then it should work fine i think