I know there are tons of questions on this already but none of those seem to work. I am trying to send data from a form into a suitelet on NetSuite but it doesn't even send the data. Does anyone see where I am going wrong?
I keep getting Partial Content as the statusText in the console.
$("#save").click(function(e){
e.preventDefault();
signup();
});
var signup = function(){
var name = $('#name').val();
var server = $('#server').val();
var username = $('#user').val();
var pwd = $('#pwd').val();
var active = $('#active').val();
$.ajax({
url: '/services/save.ss',
data: {
name : name,
server : server,
username : username,
password : pwd,
active : active
},
type: 'post',
dataType: 'json',
success: function(response){
console.log(response);
},
error: function(response){
console.log('error: ' + JSON.stringify(response));
}
})
}