Class PTHTTPRequest

Object
   |
   +--PTHTTPRequest
Direct Known Subclasses:
PTHTTPPOSTRequest, PTHTTPGETRequest

class PTHTTPRequest


Abstract superclass for PTHTTPGETRequest and PTHTTPPOSTRequest. Invoking a PTHTTPRequest will cause a background HTTP request to be sent to the server without reloading the contents of the browser. PTHTTPRequests can be set to automatically refresh the inner HTML of an element on the page, or to have the HTTP response that they generate be handled by a JavaScript function. Note that this class should not be used or instantiated directly.
Defined in PTXML.js


Field Summary
 Function responsePostProcHandler
          A reference to a function that will be called (and passed a PTHTTPResponse object) after either the callback is invoked or the targetElement's innerHTML is set.
 Function responsePreProcHandler
          A reference to a function that will be called (and passed a PTHTTPResponse object) before either the callback is invoked or the targetElement's innerHTML is set.
<static>  <final> Object REQUEST_TYPE_CLIENT_SIDE
          Enumerated Request type for client side requests
<static>  <final> String REQUEST_TYPE_HEADER
          Request Header containing the type of request being generated
<static>  <final> Object REQUEST_TYPE_PORTLET_REFRESH
          Enumerated Request type for portlet refresh requests
<static>  <final> Object VERSION
          
 
Constructor Summary
PTHTTPRequest ()
            Abstract superclass for PTHTTPGETRequest and PTHTTPPOSTRequest.
 
Method Summary
 Object invoke(loadMessageCommand)
           Invoke the HTTP request, sending the request to a server and executing any actions required by the response.
 void setRequestHeader(header, value)
           Sets a client http request header for the request.
 void setResponseHandler(responseHandler)
           Sets the appropriate response handler for the request

Field Detail

responsePostProcHandler

Function responsePostProcHandler

responsePreProcHandler

Function responsePreProcHandler

REQUEST_TYPE_CLIENT_SIDE

<static> <final> Object REQUEST_TYPE_CLIENT_SIDE

REQUEST_TYPE_HEADER

<static> <final> String REQUEST_TYPE_HEADER

REQUEST_TYPE_PORTLET_REFRESH

<static> <final> Object REQUEST_TYPE_PORTLET_REFRESH

VERSION

<static> <final> Object VERSION

Constructor Detail

PTHTTPRequest

PTHTTPRequest()

Method Detail

invoke

Object invoke(loadMessageCommand)

setRequestHeader

void setRequestHeader(header, value)

setResponseHandler

void setResponseHandler(responseHandler)


Documentation generated by JSDoc on Wed Aug 24 10:17:38 2005