Message |
Update of /usr/cvsroot/gtl/src/org/paneris/gtl/view In directory ganesh.paneris.org:/tmp/cvs-serv2703/src/org/paneris/gtl/view Modified Files: UploadFile.wm Log Message: Get the timeout right Index: UploadFile.wm =================================================================== RCS file: /usr/cvsroot/gtl/src/org/paneris/gtl/view/UploadFile.wm,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** UploadFile.wm 2003/06/24 00:57:41 1.6 --- UploadFile.wm 2003/06/24 20:34:22 1.7 *************** *** 7,18 **** <!-- // There is a problem with IE that it ! // fails to find the local file sometimes. // This wait is an attempt to let IE synchronise itself. ! function submitThis(form) { ! wait(5); ! return true; } ! //--> ! </script> #include as template "gtl/view/Header.wm" --- 7,23 ---- <!-- // There is a problem with IE that it ! // fails to find the local file sometimes or ! // perhaps to get the server name correct // This wait is an attempt to let IE synchronise itself. ! ! function submitThis() { ! setTimeout("doIt();",500); ! return false; ! } ! function doIt() { ! document.forms[0].submit(); } ! // --> ! </SCRIPT> #include as template "gtl/view/Header.wm" *************** *** 50,54 **** <input type="submit" name="Submit" value="Upload file" class="button" ! ONCLICK="return submitThis(this.form);"> </font> </td> --- 55,59 ---- <input type="submit" name="Submit" value="Upload file" class="button" ! ONCLICK="return submitThis();"> </font> </td>
|