MarkWaddington
Programmer
Hi!
I have added a chatroom script to my website, and every time I enter the room the following error occurs: Error: 'top.wOut.document is null or not an object'
To put it into context, here's the script of the page..
toOut = '<font class="sysmessage"><center>You have entered the chat.<br>Be fair, and please be civil or else you will be swiftly removed</center></font>';
if (document.all) {
top.wOut.document.body.innerHTML += toOut;
} else {
top.wOut.document.write("<html><style>BODY {font-family: Verdana, sans-serif; color: #000055; font-size: 12px;} </style><body bgcolor='#FFFFFF'>"
;
top.wOut.document.write(toOut);
}
function refresh() {
window.location='receive.php?rid=1&uid=2&username=Mark&tz=0&msgLastCheck=1031144788&allowsounds=1&lang=english';
}
Please can somebody help me! I'm lost with all this, somebody said it might be a cookie error and that it shouldn't happen on all computers.. but every computer i've tried it does happen!
Any help would be greatly appreciated.
Regards,
Mark Waddington.
I have added a chatroom script to my website, and every time I enter the room the following error occurs: Error: 'top.wOut.document is null or not an object'
To put it into context, here's the script of the page..
toOut = '<font class="sysmessage"><center>You have entered the chat.<br>Be fair, and please be civil or else you will be swiftly removed</center></font>';
if (document.all) {
top.wOut.document.body.innerHTML += toOut;
} else {
top.wOut.document.write("<html><style>BODY {font-family: Verdana, sans-serif; color: #000055; font-size: 12px;} </style><body bgcolor='#FFFFFF'>"
top.wOut.document.write(toOut);
}
function refresh() {
window.location='receive.php?rid=1&uid=2&username=Mark&tz=0&msgLastCheck=1031144788&allowsounds=1&lang=english';
}
Please can somebody help me! I'm lost with all this, somebody said it might be a cookie error and that it shouldn't happen on all computers.. but every computer i've tried it does happen!
Any help would be greatly appreciated.
Regards,
Mark Waddington.