|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--Ajax
|
+--AjaxRequest
Defined in ajax.js
| Field Summary | |
Boolean |
async
Whether to use an asynchronous request |
String |
body
Request body |
String |
contentType
Content type. |
String |
encoding
Character encoding |
Object |
form
Associated form |
Array |
formFields
Associated form fields |
Boolean |
formUpload
Indicates if the form associated with the request contains files to be uploaded |
Boolean |
formValidate
Indicates if the form associated with the request should be validated |
Hash |
headers
Set of HTTP headers |
Boolean |
ifModified
Whether an If-Modified-Since header should be sent |
String |
method
Request method (GET or POST) |
Hash |
params
Hash of GET/POST parameters |
String |
secureUri
Secure URI, when using IFRAME to upload files |
Object |
throbber
Throbber to be used during the request |
String |
uri
Request URI |
| Fields inherited from class Ajax |
conn, transId, listeners
|
| Constructor Summary | |
AjaxRequest
(<String> uri, <Object> args)
This class is able to perform HTTP requests using Ajax. |
|
| Method Summary | |
Boolean
|
abort()
This method can be used to abort a request in progress |
void
|
addParam(<String> param, <Object> val)
Adds a new request parameter |
<private> String
|
buildQueryString()
Internal method used by AjaxRequest.send() to build the query string included in the HTTP request |
<private> AjaxResponse
|
createResponse()
Internal method used by AjaxRequest.onStateChange() to create a new instance of the AjaxResponse class |
<private> void
|
doFormUpload()
Method called when the form associated with the AJAX request contains one or more files to upload. |
<private> void
|
onStateChange()
Internal method used to handle ready state changes. |
void
|
readArguments(<Object> args)
Parses the arguments provided to the AjaxRequest constructor. |
<private> void
|
release()
Release the connection object |
void
|
send()
Method that effectively creates and performs the Ajax HTTP request. |
| Methods inherited from class Ajax |
bind, raise
|
| Field Detail |
Boolean async
String body
String contentType
String encoding
Object form
Array formFields
Boolean formUpload
Boolean formValidate
Hash headers
Boolean ifModified
String method
Hash params
String secureUri
Object throbber
String uri
| Constructor Detail |
AjaxRequest(<String> uri, <Object> args)
uri - Request URI (with or without a query string)
args - Arguments
| Method Detail |
Boolean abort()
void addParam(<String> param, <Object> val)
param - Param name
val - Param value
<private> String buildQueryString()
<private> AjaxResponse createResponse()
<private> void doFormUpload()
<private> void onStateChange()
void readArguments(<Object> args)
args - Arguments
<private> void release()
void send()
|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||