I am working on list of categories where I need to select one of root categories in the list and after selecting it, it should show the subcategories and so on. SO I am here using ajax calls. As in ajax I am passing variables using get method but how can I a call block.
I have checked in controller for testing and its working fine using this url in ajax as using in controller
then tried to implement on block but i am not able figure out regarding the URL in blocks. How can I use it in Block. and I thik we can not pass the variables from controller to blocks. So finally my question is, How can use Ajax in blocks so that I can use this function in phtml file
Thanks everyone :)