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 PTXML.js


Field Summary
<static>  <final> Object VERSION
          
   
Fields inherited from class PTHTTPRequest
responsePreProcHandler, responsePostProcHandler
 
Constructor Summary
PTHTTPGETRequest (url, responseHandler, concurrencyMode, properties)
            Creates a new "in-place" client-server get request
   
Methods inherited from class PTHTTPRequest
setResponseHandler, setRequestHeader, invoke
 

Field Detail

VERSION

<static> <final> Object VERSION

Constructor Detail

PTHTTPGETRequest

PTHTTPGETRequest(url, responseHandler, concurrencyMode, properties)


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