Javascript Problem
<p>I am trying to populate list boxes with data and at the same time display the number of users currently logged in.</p>

<p>I have the following code.</p>

<pre><code>&lt;body onload = "getNumberOfOnlineUsers();" onbeforeunload = "leaveChat();"&gt;
&lt;body onload="initListGroup('links', document.forms[0].category, document.forms[0].site);"&gt;
</code></pre>

<p>The two chain boxes are rendered but the data is not populated.The number of current users too is displayed.</p>

<p>When i put,<code>&lt;body onload="initListGroup('links', document.forms[0].category, document.forms[0].site);"&gt;</code></p>

<p>above <code>&lt;body onload = "getNumberOfOnlineUsers();" onbeforeunload = "leaveChat();"&gt;</code></p>

<p>The chaine boxes are now working okay,but the number of users is not displayed.What could be the problem?.</p>
