| Author |
Message |
slacker

Joined: Oct 04, 2008
Posts: 22
|
Posted:
Mon Dec 29, 2008 1:56 am |
|
I have found that Live Chat, when active stops the Shoutbox from displaying the shouts. This seems to be caused by window.onload in chat.js.
In shoutbox.js there is a list of exceptions, where one can put other window.onload, but I can't find out how to name window.onload for Live_Chat.
The line is:
window.onload = function() { startChat(); }
startChat(); does not work and Live_Chat(); neither, because I get error messages in Firebug.
This is exception list from shoutbox.js:
function allonloads(){
SBpopulate(); |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Mon Dec 29, 2008 8:05 am |
|
Why would you want both the shoutbox and live chat on the same site? They basically do the same thing except live chat is way better  |
| |
|
|
 |
slacker

Joined: Oct 04, 2008
Posts: 22
|
Posted:
Mon Dec 29, 2008 8:19 am |
|
Shoutbox is visible on front page, so it is a way to chat even though one is not at the site at present. It is a slow chat and also a way to announce things.
Is possible to write window.onload like this instead:
// each script does this:
if (window.addEventListener)
{
window.addEventListener('load', myLoadFunction, false);
}
else if (window.attachEvent)
{
window.attachEvent('onload', myLoadFunction);
} |
| |
|
|
 |
|
|