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!

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Reddit
  • StumbleUpon
  • Technorati
  • Twitter

Related posts:

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