ah-calls

Asynchronous Http Calls


Explanation:


ah-calls uses xhr (ajax), the Dynamic Script Tag technique, and an Application Proxy (php & curl) to make local and cross domain http calls asynchronously that can return json/xml/text(AHAH) as a string/object to a javscript callback function.


API:


ahCalls.createAhCall("[get],[post],[scriptTag],[proxy]", "url to web service or local file", "[string],[jsonObject],[jsonString],[xmlObject],[xmlString],[proxyGet],[proxyPost]", callback function name, "parameters if using post, if not set as false", "proxy path, false, or leave blank");

Examples:



Load returned data from examples here...