| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--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 | 
Function responsePostProcHandler
Function responsePreProcHandler
<static> <final> Object REQUEST_TYPE_CLIENT_SIDE
<static> <final> String REQUEST_TYPE_HEADER
<static> <final> Object REQUEST_TYPE_PORTLET_REFRESH
<static> <final> Object VERSION
| Constructor Detail | 
PTHTTPRequest()
| Method Detail | 
Object invoke(loadMessageCommand)
loadMessageCommand -  A JavaScript string to be evaluated when a response is being loaded as content  
      void setRequestHeader(header, value)
header -  the request header name  
      value -  the request header value    
      void setResponseHandler(responseHandler)
responseHandler -  This can be either a callback function to call and pass back results of the request (string or Function) or it can be a target HTML element, whose innerHTML property will be set from the response text    
      
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||