PHP2Go Javascript Framework

Class AjaxRequest

Object
   |
   +--Ajax
         |
         +--AjaxRequest
Direct Known Subclasses:
AjaxUpdater, AjaxService

class AjaxRequest
extends Ajax

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

async

Boolean async

body

String body

contentType

String contentType

encoding

String encoding

form

Object form

formFields

Array formFields

formUpload

Boolean formUpload

formValidate

Boolean formValidate

headers

Hash headers

ifModified

Boolean ifModified

method

String method

params

Hash params

secureUri

String secureUri

throbber

Object throbber

uri

String uri

Constructor Detail

AjaxRequest

AjaxRequest(<String> uri, <Object> args)

Method Detail

abort

Boolean abort()

addParam

void addParam(<String> param, <Object> val)

buildQueryString

 <private> String buildQueryString()

createResponse

 <private> AjaxResponse createResponse()

doFormUpload

 <private> void doFormUpload()

onStateChange

 <private> void onStateChange()

readArguments

void readArguments(<Object> args)

release

 <private> void release()

send

void send()

PHP2Go Javascript Framework

Copyright © 2002-2006 by Marcos Pont
Documentation generated by JSDoc on Sun Oct 7 19:52:10 2007