Google

NukeCoder


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
slacker




Joined: Oct 04, 2008
Posts: 22

PostPosted: Mon Dec 29, 2008 1:56 am
Reply with quote

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();
 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Mon Dec 29, 2008 8:05 am
Reply with quote

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 Smile
 
View user's profile Send private message Visit poster's website
slacker




Joined: Oct 04, 2008
Posts: 22

PostPosted: Mon Dec 29, 2008 8:19 am
Reply with quote

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);
}
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 5 Hours
Forums ©