Click here to Skip to main content
15,890,043 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am trying to put data on my rest api as
!-->

$.ajax({
url: 'http://cloud........LoginCredentials ',
type: 'Put',
contentType: "application/json; charset=utf-8",
dataType: 'json',
crossDomain: true,
async:true,
data: LoginCredentials,
success: function (dataFromServer) {
alert("alertSuccess");
},
error: function (dataFromServer) {
alert(dataFromServer + "alertfailure");
}
});


but
using this method i am not able to call my rest api that is on another server.
PLease help me out for any other methods or api available using jqurey,ajax.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900