I use jQuery to post data like following code.
I need send out email after post based on the information user entered, it is too earlier to send before post.
I have my server code to send mail using mail server.
The only thing is event.preventDefault(); statement does not have regular post, my server side code can not get the data from user interface which user enter on the form.
I need some what method to send client data to server to send email using the informaiton,
Are there any work around for this?
Your help and information is great appreciated,
Regards,
Iccsi,
jQuery("#btnSubmit").click(function(event) {
event.preventDefault();
jQuery.ajax({
url: "Mycfc.cfc?method=myMethod&MyID="+jQuery("#MyLst").val(),
type: "POST",
success: function(data)
{
alert("Data update completed");
},
});
});