[Xsltforms-support] Problem with upload in IE8 without Java installed (it is not clear to user that
Brought to you by:
alain-couthures
From: Javier D. <jd...@tc...> - 2012-06-12 18:21:34
|
Hello, In order to test my web with IE, I installed a virtual machine to test it. When testing upload control, it didn't work, it didn't load the applet, but no error message appeared. Another person tested it and I realized I hadn't java installed in my virtual machine. The only problem with IE8 and Java is that it doesn't appear a clear error that says to you that you need Java to use the web. Instead, it appear a javascript error in IE that people don't pay attention to it. I have done this change in my xsltforms version in order to make clear that Java is not installed: if (document.applets.xsltforms) { return document.applets.xsltforms.readFile(fname, encoding, xsdtype, title) || ""; } else { - if( document.getElementById("xsltforms_applet") ) { + if( document.getElementById("xsltforms_applet") && (typeof document.getElementById("xsltforms_applet").readFile != 'undefined')) { return document.getElementById("xsltforms_applet").readFile(fname, encoding, xsdtype, title) || ""; } else { XsltForms_browser.loadapplet(); if (document.applets.xsltforms) { return document.applets.xsltforms.readFile(fname, encoding, xsdtype, title) || ""; } else { - if( document.getElementById("xsltforms_applet") ) { + if( document.getElementById("xsltforms_applet") && (typeof document.getElementById("xsltforms_applet").readFile != 'undefined')) { return document.getElementById("xsltforms_applet").readFile(fname, encoding, xsdtype, title) || ""; + } else { + alert("Error: Java no está habilitado. Es necesario Java para subir ficheros en Internet Explorer"); } } } (Alert message is intentionally in Spanish, because is an internal web) I hope it is useful to anybody. Best Regards, Javier PS: ************************************************************************************************************************************************ *La información contenida en este mensaje de correo electrónico es confidencial y puede revestir el carácter de reservada. * *Está dirigida exclusivamente a la persona destinataria. * *El acceso o cualquier uso por parte de cualquier otra persona de este mensaje no están autorizados y pueden ser ilegales.* *Si no es Ud. la persona destinataria, le rogamos que proceda a borrarlo. * *The information in this e-mail is confidential and may be legally privileged. * *It is intended solely for the addressee. * *Access or any use by any other person to this Internet e-mail is not authorised and may be unlawful. * *If you are not the intended recipient, please delete this e-mail. * ************************************************************************************************************************************************ |