Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 295430

Summary: Blank page when Javascript is disabled
Product: [RT] RAP Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tbuschto
Version: unspecified   
Target Milestone: 1.3 M4   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Proposed solution
none
alternative implementation none

Description Rüdiger Herrmann CLA 2009-11-18 06:52:58 EST
If a browser has Javascript disabled, a blank page is displayed.
Instead, there should appear a message explaining that Javascript is necessary to display the page.
The described behavior can at least be reproduced in IE8.
Comment 1 Tim Buschtoens CLA 2009-11-20 08:31:19 EST
The blank page can be seen in all browser that have JS disabled.
A message could be displayed either by using the "noscript"-tag, or by using static html and remove it using JS. Both seem to work equally well.
Comment 2 Tim Buschtoens CLA 2009-11-20 10:32:24 EST
Created attachment 152719 [details]
Proposed solution

This uses JS to hide a warning that would otherwise be visible.
Using the "noscript"-tag wasn't practical because webkit can not access its content.

The warning-message is styled so it should cover everything else, however there might be a small gap on the right in IE. (I think it can be ignored.)

It is crucial that the div is placed exactly where it is, otherwise it might be visible shortly or the application might not load.

The message text should be updated to include webkit-browser.
Comment 3 Tim Buschtoens CLA 2009-12-07 11:10:50 EST
Created attachment 153933 [details]
alternative implementation

Lets the server insert the actual message in two places. Message must not contain '"'.
Comment 4 Rüdiger Herrmann CLA 2009-12-08 05:06:15 EST
Applied and extended second patch. The placeholder ${noScriptMessage} in rwt-index.html is taken from RWTMessages (key RWT_NoScriptWarning).
Changes are in CVS HEAD