![]() |
Tina4Stack
v1.0.1
The Tina4 Stack
|
Public Attributes | |
$responseCode = "200" | |
$responseMessage = "" | |
$responseAction = null | |
![]() | |
$DEBUG = false | |
$arrayObjects = [] | |
$errors | |
$javascript = "<script> window.onclick = function() { var elements = document.getElementsByTagName('span'); for(var i = 0; i < elements.length; i++) {if ( elements[i].className === 'formError' ) {elements[i].style.display = 'none';} } } </script>" | |
Class AjaxRouterResponse
AjaxRouterResponse should be used to return responses to the Cody ajaxRouter command
AjaxRouterResponse::getResponseAction | ( | ) |
Get the response action
AjaxRouterResponse::setResponseAction | ( | $responseAction | ) |
Set the response action which is an object of AjaxResponseAction
$responseAction |
AjaxRouterResponse::setResponseCode | ( | $code | ) |
Set the response code
$code |
AjaxRouterResponse::setResponseMessage | ( | $message | ) |
Set the response message, if script tags are included the contents in them will be run
$message |
AjaxRouterResponse::$responseAction = null |
AjaxRouterResponse::$responseCode = "200" |
AjaxRouterResponse::$responseMessage = "" |