To simplify the sending of events to the server.
<html onClick='l.value = "onClick "+event.area'
onUser='l.value ="onUser "+org.zkoss.lang.Objects.toString(event.data)'><![CDATA[
<a href="javascript:;" onclick="action.onClick(this, 'Hi')">onClick with Hi</a>
<a href="javascript:;" onclick="action.onClick(this)">onClick with null</a>
<a href="javascript:;" onclick="action.onUser(this)">onUser with null</a>
<a href="javascript:;" onclick="action.onUser(this, 'One')">onUser with One</a>
<a href="javascript:;" onclick="action.onUser(this, 'One', 'Two')">onUser with [One, Two]</a>
]]></html>
Logged In: YES
user_id=91099
Originator: YES
Ready since 4/25
Logged In: YES
user_id=91099
Originator: YES
Test Ccodes:
<window title="Test of JavaScript Utilities">
<html onClick='l.value = "onClick "+event.area'
onUser='l.value ="onUser "+org.zkoss.lang.Objects.toString(event.data)'><![CDATA[
<a href="javascript:;" onclick="action.sendClick(this, 'Hi')">onClick with Hi</a>
<a href="javascript:;" onclick="action.sendClick(this)">onClick with null</a>
<a href="javascript:;" onclick="action.sendUser(this)">onUser with null</a>
<a href="javascript:;" onclick="action.sendUser(this, 'One')">onUser with One</a>
<a href="javascript:;" onclick="action.sendUser(this, 'One', 'Two')">onUser with [One, Two]</a>
]]></html>
<separator/>
<label id="l"/>
</window>
Logged In: YES
user_id=91099
Originator: YES
<window title="Test of JavaScript Utilities">
<html onClick='l.value = "onClick "+event.area'
onUser='l.value ="onUser "+org.zkoss.lang.Objects.toString(event.data)'><![CDATA[
<a href="javascript:;" onclick="comm.sendClick(this, 'Hi')">onClick with Hi</a>
<a href="javascript:;" onclick="comm.sendClick(this)">onClick with null</a>
<a href="javascript:;" onclick="comm.sendUser(this)">onUser with null</a>
<a href="javascript:;" onclick="comm.sendUser(this, 'One')">onUser with One</a>
<a href="javascript:;" onclick="comm.sendUser(this, 'One', 'Two')">onUser with [One, Two]</a>
]]></html>
<separator/>
<label id="l"/>
</window>