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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs