Location.reload not working in success in ajax+jquery+rails

Hi,

I am  using location.reload  inside success like

$.ajax({
url: “/url”,
data: ‘data=’+data,
dataType: ‘script’,
success: function() {
location.reload();
}

  });

if i use in this way its not even comming inside success how to reload
the page in this case?

thanks,
-pab