var eweb_ip = "<% GetSetting("ip_address"); %>";
var eweb_write = "http://" + eweb_ip + "/rokform/WriteLogixTags";
var datastring = $("#contactForm").serialize();
$('form').on('submit', function(e) {
alert("inside submit function");
e.preventDefault();
alert("prevented default");
$.ajax({
type: 'post',
url: eweb_write,
data: datastring,
dataType: "html",
success: function() {
alert('form was submitted');
},
error: function() {
alert('error handing here');
}
});
});
This is displaying the success alert box but no change is being written to the server.