Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Nilesh Yadav
Added: Jan 13, 2018 7:11 PM
Views: 10
Tags: no tags
  1.  var data = "url=http://www.example.com/post_url.php&parameters=1&para=2";            
  2.  
  3.  $.ajax({
  4.     url: "our_domain_url.php",
  5.     data: data,
  6.     type: "POST",
  7.     success: function(data, textStatus, jqXHR){
  8.    console.log('Success ' + data);
  9.     },
  10.     error: function (jqXHR, textStatus, errorThrown){
  11.    console.log('Error ' + jqXHR);
  12.     }
  13.  });