There's very little to do to implement Pork.Iframe: just write the form as you normally would, and add one of the following lines of code to your <form> tag:
To update a single element (found by ID) with the output of the form:
onsubmit="new iframe(this, {update:divName}); return false;">
To hide the form after submitting, and update one element by ID
onsubmit="new iframe(this, {update:divName, onComplete:function(){this.style.display='none'}}); return false;">
To upload an input type="file":
enctype="multipart/form-data" onsubmit="new iframe(this, {update:divName}); return false;">
To enable JSON support for multiple objects:
enctype="multipart/form-data" onsubmit="new iframe(this, {multiple:true}); return false;">
Note: If you add a 'script' key to the resulting JSON array that will be eval'ed in the scope of the form.
