|
Is this hack for IE bad practice for any reason (assume necessary variables exist)? try{ var form = document.createElement("<form action='upload.php' method='POST' name='fileUpload"+fileCount+"' id='fileUpload"+fileCount+"' enctype='multipart/form-data' target = 'frmUpload"+fileCount+"' >"); } catch (err) { var form = document.createElement("form"); form.setAttribute("action", "upload.php"); form.setAttribute("method", "POST"); form.setAttribute("name", "fileUpload"+fileCount); form.setAttribute("id", "fileUpload"+fileCount); form.setAttribute("enctype", "multipart/form-data"); form.setAttribute("target", "frmUpload"+fileCount); }
|
# ¿ Oct 7, 2009 00:34 |
|
|
# ¿ May 4, 2024 01:59 |