Revision: 5852 Author: fredsa Date: Thu Jul 30 16:31:23 2009 Log: Fix for issue 3903. Adds a <noscript> tag to our *.html launch files so that we provide a useful message to the user when JavaScript is turned off or not available. This includes the html template used by webAppCreator and the Google Plugin for Eclipse.
Review by: rjrjr http://code.google.com/p/google-web-toolkit/source/detail?r=5852 Modified: /trunk/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java /trunk/user/src/com/google/gwt/junit/public/junit.html /trunk/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc /trunk/user/test/com/google/gwt/i18n/public_es_AR/junit.html /trunk/user/test/com/google/gwt/i18n/public_es_MX/junit.html ======================================= --- /trunk/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java Tue Jul 28 21:11:44 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java Thu Jul 30 16:31:23 2009 @@ -381,6 +381,11 @@ writer.println("</head><body>"); writer.println("<iframe src=\"javascript:''\" id='__gwt_historyFrame' " + "style='position:absolute;width:0;height:0;border:0'></iframe>"); + writer.println("<noscript>"); + writer.println(" <b style=\"color: red; border: 1px solid red; padding: 4px;\">"); + writer.println(" Your web browser must have JavaScript enabled in order for this application to display correctly"); + writer.println(" </b>"); + writer.println("</noscript>"); writer.println("</body></html>"); // Done. ======================================= --- /trunk/user/src/com/google/gwt/junit/public/junit.html Wed Jun 25 08:05:37 2008 +++ /trunk/user/src/com/google/gwt/junit/public/junit.html Thu Jul 30 16:31:23 2009 @@ -56,5 +56,10 @@ --> </script> <iframe src="javascript:''" id='__gwt_historyFrame' style='position:absolute;width:0;height:0;border:0'></iframe> +<noscript> + <b style="color: red; border: 1px solid red; padding: 4px;"> + Your web browser must have JavaScript enabled in order for this application to display correctly + </b> +</noscript> </body> </html> ======================================= --- /trunk/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc Wed Mar 11 16:11:41 2009 +++ /trunk/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc Thu Jul 30 16:31:23 2009 @@ -37,6 +37,13 @@ <!-- OPTIONAL: include this if you want history support --> <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe> + + <!-- RECOMMENDED if your web app will not function without JavaScript enabled --> + <noscript> + <b style="color: red; border: 1px solid red; padding: 4px;"> + Your web browser must have JavaScript enabled in order for this application to display correctly + </b> + </noscript> <h1>Web Application Starter Project</h1> ======================================= --- /trunk/user/test/com/google/gwt/i18n/public_es_AR/junit.html Mon Apr 20 16:10:15 2009 +++ /trunk/user/test/com/google/gwt/i18n/public_es_AR/junit.html Thu Jul 30 16:31:23 2009 @@ -63,5 +63,10 @@ --> </script> <iframe src="javascript:''" id='__gwt_historyFrame' style='position:absolute;width:0;height:0;border:0'></iframe> +<noscript> + <b style="color: red; border: 1px solid red; padding: 4px;"> + Your web browser must have JavaScript enabled in order for this application to display correctly + </b> +</noscript> </body> </html> ======================================= --- /trunk/user/test/com/google/gwt/i18n/public_es_MX/junit.html Thu Mar 26 14:58:17 2009 +++ /trunk/user/test/com/google/gwt/i18n/public_es_MX/junit.html Thu Jul 30 16:31:23 2009 @@ -63,5 +63,10 @@ --> </script> <iframe src="javascript:''" id='__gwt_historyFrame' style='position:absolute;width:0;height:0;border:0'></iframe> +<noscript> + <b style="color: red; border: 1px solid red; padding: 4px;"> + Your web browser must have JavaScript enabled in order for this application to display correctly + </b> +</noscript> </body> </html> --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
