Prev | Current Page 772 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


function setParameter( param:String, value:
String ) : Void
Sets a parameter that is submitted with the
request.
function setPostData( data:String ) : Void Neko and JavaScript only. Sets the whole
content of a POST request.
function request( post:Bool ) : Void Performs the configured request. The
method does not return anything. To
monitor the communication results use the
onData, onError, and onStatus methods.
The post argument states if the HTTP
method to use is POST or GET.
f9dynamic function onData( data:String ) :
Void
The event that is fired once the connection
has completed the data transfer. The data
argument contains the result of the
communication.
f9dynamic function onError( msg:String ) :
Void
The event that is fired when a communication
error occurs. The msg argument
contains the reason of the failure.
f9dynamic function onStatus( status:Int ) :
Void
Fires each time there is an alteration in the
connection state. The status code is passed
as an argument.
One of the easiest applications of the AJAX technique is to update the content of an element in an HTML
document.


Pages:
760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784