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!

Related posts:

  1. Meet jQuery iFramer
  2. A Nice, Clean jQuery iFramer Example
  3. Javascript JSON Parsing with SQL
  4. More jQuery Impromptu Goodness
  5. New Demo – Impromptu with Ajax