Ah.  That makes sense.  I admit I skimmed the code and interpolated :)

On Apr 3, 11:30 am, Mike Alsup <mal...@gmail.com> wrote:
> > When ajaxForm submits a form that has a file, it opens an iframe,
> > copies your filled-in form to the iframe, submits the form *in the
> > iframe*, then copies the response back to you.  Very nice.
>
> That's not quite how it works.  Nothing is copied to the iframe.  The
> original form is submitted via a normal browser submit by invoking the
> submit function on the form element (ie:  formElement.submit() ).  The
> response is directed to a dynamically created iframe by adding a
> "target" attribute to the form before it is submitted.  There is some
> pre and post processing around all of this, but essentially that's how
> it works.
>
> Mike

Reply via email to