Duncan Booth <du**********@invalid.invalid> wrote:
You might want to have a look at kupu (SVN checkout from
http://codespeak.net/svn/kupu/trunk/kupu) and search for kupu_upload_form.
The form there has a target attribute and is followed by an invisible
iframe with a name matching the target. When the form is submitted, this
means the response comes back into the iframe. The response includes an
onLoad event which calls a javascript method back in the main document to
handle the result or display an error message.
That would work... except that I don't have any control over the form
tag... and the form needs to work as usual when the real submit button
is pressed. I suppose I could temporarily set the target via DOM, and
then put it back after the Form.submit() call... seems kinda kludgy,
though. I'm debating whether that's cleaner than faking the form submit
via XMLHttpRequest.
--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation