Changes between Version 5 and Version 6 of Ticket #608, comment 4


Ignore:
Timestamp:
Dec 2, 2014, 11:28:08 AM (9 years ago)
Author:
olle

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #608, comment 4

    v5 v6  
    77Comments on some code details:
    88
    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. For the "`Wizard`" to be able to automatically display and hide different steps in the user interface appropriately, the JSP file must be updated to enclose code for each step in "<div>" tags with specific class and id names.[[BR]]e. Ajax calls should be made using function `Wizard.asyncJsonRequest(url, callback, method, postdata)` in Javascript library file `reggie-2.js`.[[BR]]f. 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 second 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.
     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. For the "`Wizard`" to be able to automatically display and hide different steps in the user interface appropriately, the JSP file must be updated to enclose code for each step in "<div>" tags with specific class and id names.[[BR]]e. Ajax calls should be made using function `Wizard.asyncJsonRequest(url, callback, method, postdata)` in Javascript library file `reggie-2.js`.[[BR]]f. 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 second 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.[[BR]]g. JSP files should be updated to exchange "`size`" attributes for "`style="width: ?em"`" attributes, where "`?`" represents the desired width in "`em`" units.