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!

Be Sociable, Share!

Related posts:

  1. Meet jQuery iFramer
  2. A Nice, Clean jQuery iFramer Example
  3. Postgres Gets JSON Type in 9.2
  4. Javascript JSON Parsing with SQL
  5. More jQuery Impromptu Goodness