Ajax
class Ajax (View source)
Methods
Details
bool
isAjaxRequest(Request $request)
deprecated
deprecated use the isXmlHttpRequest() method of the request object
Check if a request is an Ajax call.
sendResult(mixed $result)
deprecated
deprecated You should switch to something like: return \Core::make(\Concrete\Core\Http\ResponseFactoryInterface::class)->json(...)
Sends a result to the client and ends the execution.
sendError(mixed $error)
deprecated
deprecated You should switch to something like: return \Core::make(\Concrete\Core\Http\ResponseFactoryInterface::class)->json(...)
Sends an error to the client and ends the execution.