V
vunet
Hello,
My HTML form submits some values to a hidden iframe. However, this is
done for file upload fields only. After file uploading is finished I
am using this form to submit all other data (inputs, textareas, etc.)
normally.
The file upload mechanism is structured in the way that it sets form's
enctype (multipart) and target to iframe dynamically and then resets
to old values right after submit() method.
This works ideally in most (maybe almost all) browsers but IE6.
I learned that for IE6 it is not enctype but rather encoding property
that needs to be set:
http://msdn.microsoft.com/en-us/library/ms533745(VS.85).aspx (see
Warning on the bottom)
Fine, but when I set encoding, submit() the form, then I am unable to
reset the form's properties such as encoding or target in IE6, because
as I briefly heard IE6 loses its reference to the form after using
submit().
I am not sure how true this is because my alerts did show encoding and
target properties in IE6 which, unfortunately, could not be reset.
On another hand, I saw that some time pauses need to be applied to
reset values after submit in IE6 but I am still looking into that.
I need a solution for this or explanation of why it is happening. If
anyone is aware of anything to help me move forward please suggest.
Thanks.
My HTML form submits some values to a hidden iframe. However, this is
done for file upload fields only. After file uploading is finished I
am using this form to submit all other data (inputs, textareas, etc.)
normally.
The file upload mechanism is structured in the way that it sets form's
enctype (multipart) and target to iframe dynamically and then resets
to old values right after submit() method.
This works ideally in most (maybe almost all) browsers but IE6.
I learned that for IE6 it is not enctype but rather encoding property
that needs to be set:
http://msdn.microsoft.com/en-us/library/ms533745(VS.85).aspx (see
Warning on the bottom)
Fine, but when I set encoding, submit() the form, then I am unable to
reset the form's properties such as encoding or target in IE6, because
as I briefly heard IE6 loses its reference to the form after using
submit().
I am not sure how true this is because my alerts did show encoding and
target properties in IE6 which, unfortunately, could not be reset.
On another hand, I saw that some time pauses need to be applied to
reset values after submit in IE6 but I am still looking into that.
I need a solution for this or explanation of why it is happening. If
anyone is aware of anything to help me move forward please suggest.
Thanks.