jQuery iFramer gets JSON Support
in programming
It didn't take long to make a couple tweaks to iFramer. You can now specify a returnType in the options as json. Doing so will return a json object of the returned data from the form. Here's how to call it:
$('#myform').iframer({
returnType: 'json',
onComplete: function(data){
//param data is a json object
}
});
If you opt not to specify the returnType parameter the returned data will be treated as plain html, so it is still optional. Enjoy!