porting create form wizard to IE. IE wants form.encoding rather than form.enctype.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4060 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2006-10-08 00:45:23 +00:00
parent 429d9e273b
commit aee593e63c
2 changed files with 5 additions and 12 deletions

View File

@@ -30,6 +30,8 @@
{ {
el.form.method = "post"; el.form.method = "post";
el.form.enctype = "multipart/form-data"; el.form.enctype = "multipart/form-data";
// for IE
el.form.encoding = "multipart/form-data";
el.form.action = "<%= request.getContextPath() %>/uploadFileServlet"; el.form.action = "<%= request.getContextPath() %>/uploadFileServlet";
el.form.submit(); el.form.submit();
return false; return false;

View File

@@ -37,24 +37,15 @@
function validate() function validate()
{ {
// if (finishButtonPressed)
// {
// finishButtonPressed = false;
// return validateName(document.getElementById("wizard:wizard-body:file-name"),
// '</f:verbatim><a:outputText value="#{msg.validation_invalid_character}" /><f:verbatim>',
// true);
// }
// else
// {
// return true;
// }
return true; return true;
} }
function upload_file(el) function upload_file(el)
{ {
el.form.method = "post"; el.form.method = "post";
el.form.enctype = "multipart/form-data"; el.form.encType = "multipart/form-data";
// for IE
el.form.encoding = "multipart/form-data";
el.form.action = "<%= request.getContextPath() %>/uploadFileServlet"; el.form.action = "<%= request.getContextPath() %>/uploadFileServlet";
el.form.submit(); el.form.submit();
} }