Class AjxPost
Object
|
+--AjxPost
- class
AjxPost
This singleton class makes an HTTP POST to the server and receives the response, passing returned data
to a callback. This class is used to upload files from the client browser to the server using the file
upload feature of POST.
Defined in AjxPost.js
Author: Conrad Damon
Constructor Summary |
AjxPost
(iframeId)
Resets the AjxPost object.
|
Method Summary |
void
|
_onFailure(reqId)
|
void
|
execute(callback, form, optionalTimeout)
Submits the form.
|
void
|
loaded(status, reqId, id)
Processes the HTTP response from the form post.
|
_callback
Object _callback
_iframeId
Object _iframeId
_outStandingRequests
<static> Object _outStandingRequests
_reqIds
<static> Object _reqIds
SC_ACCEPTED
<static> Object SC_ACCEPTED
SC_BAD_GATEWAY
<static> Object SC_BAD_GATEWAY
SC_BAD_REQUEST
<static> Object SC_BAD_REQUEST
SC_CONFLICT
<static> Object SC_CONFLICT
SC_CONTINUE
<static> Object SC_CONTINUE
SC_INTERNAL_SERVER_ERROR
<static> Object SC_INTERNAL_SERVER_ERROR
SC_OK
<static> Object SC_OK
SC_REQUEST_ENTITY_TOO_LARGE
<static> Object SC_REQUEST_ENTITY_TOO_LARGE
SC_REQUEST_TIMEOUT
<static> Object SC_REQUEST_TIMEOUT
SC_SERVICE_UNAVAILABLE
<static> Object SC_SERVICE_UNAVAILABLE
SC_UNAUTHORIZED
<static> Object SC_UNAUTHORIZED
AjxPost
AjxPost(iframeId)
Resets the AjxPost object.
_onFailure
void _onFailure(reqId)
execute
void execute(callback, form, optionalTimeout)
Parameters:
callback
- function to return to after the HTTP response is received
formId
- DOM ID of the form
loaded
void loaded(status, reqId, id)
Processes the HTTP response from the form post. The server needs to make sure this function is
called and passed the appropriate args. Something like the following should do the trick:
out.println("");
Parameters:
id
- the id for any attachments that were uploaded
Documentation generated by
JSDoc on Thu Apr 27 13:58:40 2006