I want to call a function in a Helper file, from js file using ajax.
In my config.xml
<global>
<helpers>
<customname>
<class>...
In js file:
jQuery.ajax({
url: "Mage::helper('customname')->getPricesAjaxCall()"
type: "POST",
data: {key: 'value'},
success: function(productId){
console.log('check 11');
}
});
But I don't know what i should put in the url to correctly call it. Any idea?