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?
in ajax request controller action is returning.
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