A commenter asked me how to extend a previous jQuery post to perform the database save via ColdFusion. It is REALLY easy (and please keep in mind this is meant to be a SIMPLE example, not production code). From the jQuery side my example only required the following code to ship the data off to ColdFusion:
function fSave(){
you=$("#you").val();
// Try to save
$.get("adduser.cfm?"+"you="+you , function(data){
// Result
alert(data);
window.location=location.href;
});
}
The adduser.cfm page then validates and inserts the data and returns a success or failure message.
how can u get the data back without the popup window
will it work with cfinput