tmt.net is a JavaScript library that abstracts the use of XMLHttpRequest and manages HTTP requests using Ajax. It's lightweight, rock-solid and offers some unique features
What's different in tmt.net?. Why do we need yet another XMLHttpRequest library?
HTTP requests issues by tmt.net contain "tmt.net" as the X-Requested-With header
tmt.net is also used as an helper for CSI and Ajaxform
In order to use this library you need tmt_net.js
| tmt.net.httpRequest() | Perform an HTTP request. You can either use a list of arguments or a single object containing name/value pairs. While using a list of arguments tends to be simpler, the single object argument gives you more flexibility Available arguments using list:
Available arguments using object:
Inside callbacks you can access:
|
| tmt.net.isSupported() | Returns true if the current browser is supported by the library, false otherwise |
| request.abort() | You can programmatically abort an ongoing HTTP request like: var req = tmt.net.httpRequest("myurl.html",myCallback); req.abort(); (see sample) |