i am learning begging step of creating a ajax request in magento and mostly i found same code logic. But where i am confused in these tutorials are actually what controller will return?
https://www.atwix.com/magento/ajax-requests-in-magento/
in ajax request controller action is returning.
$this->loadLayout();
$this->renderLayout();
which is same as non ajax call. Actually what this code return when call via ajax? complete html, head, body & their inner html tags? what if i want to retun some specification or json data?
i am asking 2 things
- what given code controller->action code return when call via ajax?
- how to return specific