Prado Chat Demo

OnClick="processMessage"/>
Event.observe($("<%= $this->userinput->ClientID %>"), "keypress", function(ev) { if(Event.keyCode(ev) == Event.KEY_RETURN) { if(Event.element(ev).value.length > 0) new Prado.Callback("<%= $this->sendButton->UniqueID %>"); Event.stop(ev); } });