I'm using the form plug-in for validation but I'm having a tough time
trying pass the form variables to AjaxCFC. I'm using formSerialize()
which returns "name1=value1&name2=value2" but I don't know how to pass
that format or convert for data: {} since it's looking for
{"name1":"value1",..}
Below is part of my code after validation:
var formitems = $("#myForm").formSerialize();
$.AjaxCFC({
url: 'sgcfc/projects.cfc',
method: 'insertProjTime',
data: formitem,
unnamedargs: false,
serialization: 'json',
success: function(r){
// some code
}
})
Any suggestion?