XHConn is a small (1.6 kilobytes) and simple Ajax JavaScript library. This JavaScript library is meant to simplify and unify the code necessary to successfully send and receive simple data via XMLHTTP. This is the simplest and straightforward Ajax library possible.


var my_conn = new XHConn();

if (!my_conn) // XMLHTTP not available. exit method/handle error.

var fnWhenDone = function (oXML) { alert(oXML.responseText); };

my_conn.connect("mypage.php", "POST", "foo=bar&baz=qux", fnWhenDone);