Class QAjaxAction
The QAjaxAction responds to events with ajax calls, which refresh a portion of a web page without reloading the entire page. They generally are faster than server requests and give a better user experience.
The QAjaxAction will associate a callback (strMethodName) with an event as part of an AddAction call. The callback will be a method in the current QForm object. To associate a method that is part of a QControl, or any kind of a callback, use a QAjaxControlAction.
The wait icon is a spinning gif file that can be overlayed on top of the control to show that the control is in a "loading" state. TODO: Convert this to a FontAwesome animated icon.
mixCausesValidationOverride allows you to selectively say whether this action causes a validation, and on what subset of controls.
strJsReturnParam is a javascript string that specifies what the action parameter will be, if you don't want the default.
blnAsync lets you respond to the event asynchronously. Use care when setting this to true. Normally, qcubed will put events in a queue and wait for each event to return a result before executing the next event. Most of the time, the user experience is fine with this. However, there are times when events might be firing quickly and you do not want to wait. However, your QFormState handler must be able to handle asynchronous events. The default QFormStateHandler cannot do this, so you will need to use a different one.
- QBaseClass
 - 
			
			QAction
			
			
			
		 - 
			
QAjaxAction			
			
			
		 
			 public 
			
			
			
		 | 
		
		#
		 __construct( string $strMethodName = null, string|
		AjaxAction constructor.  | 
	
			 public 
			
			
			
		 | 
		|
			 public 
			mixed|null|string
			
			
		 | 
		|
			 protected 
			string
			
			
		 | 
		|
			 public 
			string
			
			
		 | 
		
		#
		 RenderScript( 
		Returns the RenderScript script for the action. The returned script is to be executed on the client side when the action is executed (in this case qc.pA function is executed)  | 
	
			RenderActions(), 
			__set()
		 | 
	
			OverrideAttributes(), 
			__call()
		 | 
	
			protected  
			string
		 | 
		
				$strId
			 Ajax Action ID  | 
		|
			protected  
			string
		 | 
		
				$strMethodName
			 The event handler function name  | 
		|
			protected  
			 | 
		
				$objWaitIconControl
			 Wait Icon to be used for this particular action  | 
		|
			protected  
			boolean
		 | 
		
				$blnAsync
			 | 
		
			 
				#
				 
		false
			 | 
	
			protected  
			mixed
		 | 
		
				$mixCausesValidationOverride
			 what kind of validation over-ride is to be implemented (See the QCausesValidation class and QFormBase class to understand in greater depth)  | 
		|
			protected  
			string
		 | 
		
				$strJsReturnParam
			 the line of javascript which would set the 'strParameter' value on the client-side when the action occurs!  | 
		
			$objEvent
		 | 
	
			public  read-only
			
		 | 
		
				$MethodName
			 Name of the (event-handler) method to be called the event handler - function containing the actual code for the Ajax action  | 
	
			public  read-only
			 | 
		
				$WaitIconControl
			 the waiting icon control for this Ajax Action  | 
	
			public  read-only
			mixed
		 | 
		
				$CausesValidationOverride
			 what kind of validation over-ride is to be implemented on this action.(See the QCausesValidation class and QFormBase class to understand in greater depth)  | 
	
			$Event
		 |