IO/ Gateway.js |
IO/ Gateway.jsThis library gives the ability to directly communicate with a server using the XMLHTTPRequest object in a non-browser specific way. Copyright2004-2006 Rob Rohan (robrohan@gmail.com). All rights reserved RelatedUtil/Collections.js Util/Browser.js Summary
PipeThis creates a HTTPConnection factory that can produce http connetion object that are IE and Mozilla capable they can be used to GET and POST to a server It is oftend used in one go like: var pipe = new Sortie.IO.Pipe().GetInstance(); NamespaceSortie.IO Returnsa factory to create xmlhttprequest objects with Summary
GatewayThis object handles sending. This can be used to send and receive data from the server NamespaceSortie.IO Parameters
Summary
Gateway. DoRequestUsed to do an actual request. Pass in an anon object with the connection specifics. For example: var httpcon = new HTTPConnectFactory().getInstance(); Parameters
method = GET,POST,DELETE,PUT,etc Gateway. DoFormPostRequestThis method implements a multi-field form submission via a POST, using the ‘fields’ object as a set of name:value pairs to pass as the form fields. It simply delegates to doPostRequest for the actual processing; the only functionality is serializing the fields. Note that this method’s parameter ordering does NOT correspond to doPostRequest’s. Parameters
|