The wwHttp class provides a thin wrapper around the browser XmlHttp object to allow making callbacks. The control manages hooking up a callback handler and managing errors by calling the callback handler or error handler when the calls complete.

Focus of this control is to make the callback process very easy but still provide robust error management.

function HttpSample() { var Http = new HttpClient(); var Result = Http.send("http://localhost/",null, function(result) { alert("It worked: " + result); // shows HTML result }, function(error) { alert("Error: " + error.message); } }; }

Note that calls are asynchronous so results are fired into the result functions out of band. To make multiple simultaneous callbacks create multiple instances of this class.