Login   Register  
Icontem

File: parms.readme.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Randal Allen Anderson III  >  Javascript Params Array  >  parms.readme.txt  >  Download  
File: parms.readme.txt
Role: Documentation
Content type: text/plain
Description: Getting started with Parms
Class: Javascript Params Array
Manipulate arrays of named parameters
Author: By
Last change:
Date: 2013-05-11 18:16
Size: 1,826 bytes
 

Contents

Class file image Download
  Parms - Open Source JavaScript Custom Parameters

  parms.readme.txt
    getting started with Parms

  Author: Randal Allen Anderson III
          rational_ape@hotmail.com
  Web: http://raa3enterprises.com/parms
  Copyright (c) 2013 RAA3 Enterprises, Inc.
  GNU General Public License - http://www.gnu.org/licenses/gpl.html


Double click on the file "Parms.test.html" to run a test of the parms. This will open up a window in your default browser. Press the "F2" key to see the log.

The parms test should run as expected. To incorporate custom parameters in your application, include and use the "parms.js" file. See the "parmstest.js" file for examples of how to use the custom parameters.

Custom Parameters uses logging to show warnings and errors encountered in their usage. Two loggers have been included in this project that can be used or you can use another. The logger will need to have the following functions defined:  log.severe(message) log.error(message) log.warn(message) log.info(message) log.trace(message) log.debug(message).

To use the jraLogger, copy the jraLoggerFiles directory and the "logging.css" file to an appropriate location in your project. Then include the "logging.css" and "jraLoggerFiles/jraLogger.css" and "jraLoggerFiles/jraLogger.js" in your web page. Then from Javascript, call any of the logging functions: log.severe(message) log.error(message) log.warn(message) log.info(message) log.trace(message) log.debug(message).

To use the Blackbird logger, copy the blackbirdFiles directory to an appropriate location in your project. Then include the "blackbirdFiles/blackbird.css" and "blackbirdFiles/blackbird.js" in your web page. The "logger.css" file contains styling for the buttons used on the test pages. If you want similar styling then also include this file in your web page.