I want to enable form Post from another sites.suppose i have one Form in my site and i want to enable that form post for another sites.
i have asp.net web page www.xyx.com\formpost.aspx
with field EMail.and i want to enable my page form post.for all any one who post data into my site.
like
1)www.test.com\emailpost.php Form Post from this site.
var str = JSON.stringify($('#myForm').serializeObject());
$.ajax({
type: 'POST',
contentType: 'application/json; charset=utf-16',
dataType: 'json',
url: "www.xyx.com/formpost.aspx/SaveCustomerEmail",
success: function (msg) {
alert('done');
},
error: function (msg) {
alert(JSON.stringify(msg)) }
});
2)www.test2.com\emailpost.jsp Form Post from this site.
var str = JSON.stringify($('#myForm').serializeObject());
$.ajax({
type: 'POST',
contentType: 'application/json; charset=utf-16',
dataType: 'json',
url: "www.xyx.com/formpost.aspx/SaveCustomerEmail",
success: function (msg) {
alert('done');
},
error: function (msg) {
alert(JSON.stringify(msg)) }
});