Class PTHTTPGETRequest

Object
   |
   +--PTHTTPRequest
         |
         +--PTHTTPGETRequest

class PTHTTPGETRequest
extends PTHTTPRequest


Object wrapper for "in-place" client-server GET operations. Invoking a PTHTTPGETRequest will cause a background HTTP request to be sent to the server without reloading the contents of the browser. PTHTTPGETRequests 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.

Usage:	
 	// refresh the content of an element
	var request = new PTHTTPGETRequest('foo.jsp', document.getElementById('refresh-elem-id'));
	request.setRequestHeader('my-custom-header', 'headervalue');	
	request.invoke();
 
 OR
 	// invoke a response handling function
	function handleResponse(resp) { alert(resp.responseText); }	
	var request = new PTHTTPGETRequest('foo.jsp', handleResponse);
	request.invoke();
 

Defined in PTHTTPGETRequest.js


Field Summary
<private>  Object className
          
 Object properties
          
<static>  <final> Object VERSION
          
   
Fields inherited from class PTHTTPRequest
url, type, callback, targetElement, responsePreProcHandler, responsePostProcHandler, concurrencyMode, requestHeaders, properties, _requestForm, formDataSet
 
Constructor Summary
PTHTTPGETRequest (url, responseHandler, concurrencyMode, properties)
            Creates a new "in-place" client-server get request
   
Methods inherited from class PTHTTPRequest
_setFormURLEncodedDataFromNVPairs, _setFormURLEncodedDataFromForm, setResponseHandler, setFormContent, setRequestHeader, invoke
 

Field Detail

className

<private> Object className

properties

Object properties

VERSION

<static> <final> Object VERSION

Constructor Detail

PTHTTPGETRequest

PTHTTPGETRequest(url, responseHandler, concurrencyMode, properties)


Documentation generated by JSDoc on Tue Sep 21 02:04:06 2010