Send Json Data To Another Url - After You've Got It Back From My Own Url
This is how the json I get from my page send when I clicked post, I throw a different URL. That piece of data should like to come to look like this: api.quickpay.net/subscriptions?
Solution 1:
You can pass the JSON object as an argument to $.get()
, and jQuery will convert the properties into URL parameters.
$.ajax({
type: 'post',
url: '/Medlem/medlemskabet',
dataType: 'json',
data: JSON.stringify(requestData),
contentType: 'application/json; charset=utf-8',
async: true,
processData: false,
success: function(response) {
$.get('api.quickpay.net/subscriptions', response);
}
});
Post a Comment for "Send Json Data To Another Url - After You've Got It Back From My Own Url"