I want to call a method defined in controller using AJAX from my custom module's block folder .php file.
how I can do that.?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
Magento uses PrototypeJS for Ajax, please refer to the documentation:
http://api.prototypejs.org/ajax/Ajax/Updater/ if you want to display the response as HTML inside an existing element.
http://api.prototypejs.org/ajax/Ajax/Request/ for any other kind of Ajax request
You get the URL to your controller as usual with