The problem occurs in the demo as well (Not using ITK).
A few things you should know:
- IE Mac is dangerous. MS has not touched it for years, and publicly announced development had stopped a year ago.
- IE has well-known bugs (among its many others) in the way it sends multipart/form-data forms. It isn't following the http specification, and it is breaking it in such a way it is impossible to workaround at the server level.
The bug you are seeing has to do with the use of image or file upload fields in a multipart form. If such fields occur and are submitted, IE screws up the http request. It ain't my fault, it's IE's fault -- every other browser on the planet will have no problem with the same page.
As I said, you can't work around this problem on the server level, because the http request is just plain broken. Your only choices are:
- Decertify IE Mac completely for your site. If your Mac users are all using Mac OS X, this is not only possible, but preferable, as there are a host of great browsers (Camino, Firefox, Mozilla, Safari) that are infinitely superior to and less buggy than IE.
- Remove everything from your file upload form except for the file field and a submit button.
If you follow the second option, you STILL must do some foolishness to work around Microsoft's criminal neglect of the http standards. IE Mac will not submit any fields after the file upload field on a form. So if you want your submit button to appear after the file field (which is only natural), you have to do something like this:
<script type="text/javascript" language="JavaScript">
function onButtonClick(inButton)
{
inButton.form.button.value = inButton.name;
}
</script><form
action="/processForm.a4d?u=<%= GetUniqueID %>"
method="POST"
name="form1"
enctype="multipart/form-data"
>
<%
` There is a bug in IE5 Mac that prevents fields after the file field from being submitted
` properly. To get around this, we will keep a hidden field that will be set by a click handler
` on the submit buttons, then use that in the update fuse to fake the correct button click.
a4d.web.HideField("button"; "")
%>
<input name="A4D_Upload" type="file">
<input type="submit" name="Submit" value="Submit" onClick="onButtonClick(this)">
<input name="imageField" type="image" src="pics/gear_ok.png" onClick="onButtonClick(this)">
</form>
In processForm.a4d, you check the value of _form{"button"} to see what was clicked.
Good luck...and stay away from IE if possible!
Regards,
Aparajita Victory-Heart Productions [EMAIL PROTECTED] www.aparajitaworld.com
"If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoylibrary.com
_______________________________________________ Active4D-dev mailing list [EMAIL PROTECTED] http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
