Examples - Chatbox

This example shows how easily and quickly you can implement a chatbox using DynAjax engine.

A sample code:

---Place to display Results---
<div id="result"></div>

---Form to enter a message to send---
<div id="params">
    <input type="button" value="Send"
        onclick="dynajax.request('respfile: messageboard.php; resultloc: result;
        paramloc: params;')" />
    <input name="mymessage" type="text" value="" size="60" />
</div>

---For autorefresh---
<script type="text/javascript">
    dynajax.request('respfile: messageboard.php; resultloc: result; refreshtime: 3000;');
</script>


The chatbox in action



Notes:


Click here to proceed to the next example
Click here to get DynAjax