Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sendRequest() {
- //var method = $('#method').val();
- var email = 'me@mymail.com';
- var pwd = 'mypwd01!';
- $.ajax({
- crossDomain: true,
- type: 'post',
- url: serviceUrl,
- processData: false,
- dataType: 'jsonp',
- processData: false,
- contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
- data: {'grant_type': 'password', 'userName': email, 'Password': pwd},
- }).done(function (data) {
- $('#value1').text(data);
- }).error(function (jqXHR, textStatus, errorThrown) {
- $('#value1').text(jqXHR.responseText || textStatus);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement