Send ajax request from jquery.

It is better to send Ajax requests directly from java script or jquery instead clicking on button from Java Script to send Ajax request.

insecure https protocol IE shows some error if you send clicking on button from java script to send Ajax request

Sample code:-

$j.ajax({
 type: "POST",
  url: "https://myurl.com/recent"
 data: "requstids="+response.request_ids
  })

Comments

Popular posts from this blog

Rails Memcache issues

Enabling password authentication for new ec2 box | ssh, ssh config, EC2 setup, new user in EC2, PasswordAuthentication

What's the difference between "include" and "require" in Ruby?