How to AJAX response (with JSON) 19/11/2014
$this->sendJson($dataObject); or
$this->sendResponse(new JsonResponse($myObject)); or use native nette channel
$this->payload->data = $data; $this->sendPayload(); or just redraw component
if ($this->isAjax()){ $this->redrawControl('datalist'); }
$this->sendJson($dataObject);
or
$this->sendResponse(new JsonResponse($myObject));
or use native nette channel
$this->payload->data = $data;
$this->sendPayload();
or just redraw component
if ($this->isAjax()){
$this->redrawControl('datalist');
}