I am new to magento, and i am trying to make a simple ajax call in it

      url: url,
      dataType: 'json',
      type : 'post',
      data: data,
      async: true,
      success: function(data){
            //alert(data.status + ": " + data.message);
            if(data.status == 'SUCCESS'){

after response i need to reload the page to see the changes done by ajax call. Are there any other ways and how to implement them. Can anyone help.

  • What errors are you getting in this code ? May 20, 2016 at 9:17

1 Answer 1


You are using jQuery... you can do that of course, but you have to make sure jQuery is properly implemented. Magento 1 uses Prototype by default, which means an Ajax Call might look about like this:

new Ajax.Request(url, {
        parameters: params,
        onSuccess: function(transport) {
            try {

            } catch(e) {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.