Changes between Initial Version and Version 1 of Ticket #608, comment 4


Ignore:
Timestamp:
Dec 2, 2014, 10:57:40 AM (10 years ago)
Author:
olle

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #608, comment 4

    initial v1  
    22
    33 1. Each JSP file should be modified to not include `<script>` tags nor "`onclick`" attributes. The Javascript code in the current `<script>` tag should be placed in a separate Javascript file with the same base name (filename without file extension) as the JSP file, but with file extension "`.js`". The JSP file should refer to the corresponding Javascript file for functionality.
    4  2. JSP/Javascript code should be updated to the structure used in Reggie v.2.17, specifically Reggie v.2.17.2. This includes use of the "`Wizard`" function to control steps in the user interface.
     4 2. JSP/Javascript code should be updated to the structure used in Reggie v.2.17, specifically Reggie v.2.17.2. This includes use of the "`Wizard`" functionality to control steps in the user interface.
    55 3. XML file `extensions.xml` in `META-INF/` should be updated in "`<about>`" tags to set attributes "`safe-scripts="1"`" and "`safe-resources="0"`", where appropriate.
    66
    77Comments on some code details:
    88
    9 a. In order to update the code structure to that used in Reggie v.2.17, Javascript library `reggie.js` should be exchanged for `reggie-2.js`, and CSS file `reggie.css` should be exchanged for `reggie-2.css`.
     9 * In order to update the code structure to that used in Reggie v.2.17, Javascript library `reggie.js` should be exchanged for `reggie-2.js`, and CSS file `reggie.css` should be exchanged for `reggie-2.css`:[[BR]]a. Javascript library `reggie-2.js` gives access to the "`Wizard`" functionality.[[BR]]b. Class and id names in the JSP file must be modified to work with the `reggie-2.css` style sheets.[[BR]]c. The "`<form>`" tag in the JSP file must be updated to include attributes "`id="wizard" class="wizard"`", in order for the "Wizard" functionality to work, as well as to get the correct style from CSS file `reggie-2.css`.[[BR]]d. Javascript library file `reggie-2.js` automatically prints Reggie program name and version number in the upper right corner of the web page. Since `reggie-2.js` here only works as a supporting Javascript library, this may be confusing in two ways; first since the real Base extension name is "`LabEnv`", and seconds since another full Reggie Base extension with another version number may be installed on the same BASE installation. Therefore the JSP file should be extended in the "<style>" tag to set "`#reggie-version{display: none;}`", in order to hide this entry.