JS_VISION.cfm is a ColdFusion custom tag that allows the user to specify which JavaScript Vision modules that are needed with a Web page. The custom tag will ensure that all the proper JavaScript Vision .js files are accessible to the Web page. (The tag takes the work out of knowing and coding the dependencies amongst the .js files.)
JavaScript Vision Dependencies
<CF_JS_VISION ...>
or
<CFMODULE TEMPLATE="JS_VISION.cfm"
MODULE=""
USE=""
MODULEPATH="">
or
<CFMODULE TEMPLATE="JS_VISION.cfm"
USE=""
MODULEPATH=""
ALL="Yes | No"
CHARACTER="Yes | No" ...>
Module Name | Comments |
---|---|
array | Functions that allow the user to work with arrays not provided by standard JavaScript. |
calendar | Displays a calendar highlighting the day of the month. |
cookie | Functions that allow the user to work with, and to ease the pain of using, cookies. These functions include the ability to set, read, and kill cookies. |
character | Functions that allow the user to work with characters. These functions include the ability to check whether a character is a digit, an alphabetic character, and whether the character is upper or lower case. |
datetime | Functions that allow the user to work with dates and times. These functions include the ability to format a date, determine if a particular year is a leap year, and return a textual version of the date (e.g., Sunday or Tuesday) or month (e.g., April or October). |
debug | Functions that allow the user to trace the flow of JavaScript functions along with the value of JavaScript variables. |
dialog | Dialog functions are those that allow the user interact with the Web page. These functions include the ability to display alert, confirmation and prompt dialog boxes. |
field |
Functions that allow the user to work with the INPUT field.
These functions include the ability to check the validity of an e-mail address,
a date, an integer, or a floating point number.
|
form |
Form functions are those that allow the user to work with the FORM tag.
These functions include the ability to create e-mail using the mailto: URL feature of JavaScript,
store data entered in a form, retrieve and populate the saved form data, and
establish a pointer to a form.
|
html | Functions that allow the user to work with HTML tags. |
list | Functions that allow the user to work with lists. These functions include the ability to find an element in a list and retrieve a particular element from a list. |
numeric | Functions that allow the user to work with integer and floating point numbers. These functions include the ability to determine is a value is a floating pointing number or an integer. |
string | Functions that allow the user to work with strings. These functions include the ability to strip characters from a string; pad and trim a string; and evaluate the string as being empty, only whitespace, or alphabetic. |
utility | Functions that allow the user to perform "high-level" functionality that is not covered by the "basic" functions (e.g., string, character, and HTML). These functions primarily deal with the manipulating of a Web page's query string. |
sniffer | TBD |
framemgmt | These frame management functions are designed to be an integrated set of tools for the developer to manage frames, and documents in the frames, in a Web browser environment. These functions allow the user to easily manipulate the frames, and documents in the frames, based on the frame name. |
imagemgmt | TBD |
windowmgmt | Functions that allow the user to work with browser windows. These functions include the ability to define, open, close, write to, determine if a window is open or closed, and determine the number of windows defined or open. |
all | Places all of the above modules into the Web page. |
INCLUDE
, to include
(i.e., using CFINCLUDE
) the JavaScript Vision .js files
in the page,
or LINK
, to reference the JavaScript Vision .js
using the SRC
attribute of the HTML SCRIPT
tag.
If not specified, the default value is LINK
.
USE
attribute is INCLUDE
,
then the user must specify the relative path
(e.g., ../JavaScript/JS_Vision_String.js
)
to the JavaScript Vision .js files.
If the USE
attribute is LINK
,
then the user can specify either the relative
(e.g., ../JavaScript/JS_Vision_String.js
),
or absolute (e.g.,
http://www.roaringforksoftware.com/JSV/JS_Vision_String.js
), path to
the JavaScript Vision .js files.
To obtain a copy of the JavaScript Vision custom ColdFusion tag, right click on JS_VISION.zip. In Microsoft Internet Explorer, select Save Target As...; in Netscape Navigator, select Save Link As.... You'll then get a dialog box asking you where you want to save the custom tag file. Select a folder on your hard drive and click OK. The custom tag and editor files are now in that folder!
For more information on the SRC
attribute of the SCRIPT
tag, see JavaScript Vision
Frequently Asked Questions.
When STRING is selected as one of the modules to be included,
the JSV_Vision_String4.js file is included along with the
JSV_Vision_String.js file but the
SCRIPT
tag's LANGUAGE
attribute is set to
JavaScript1.2
as shown below
<SCRIPT TYPE="text/javascript"
LANGUAGE="JavaScript1.2"
SRC="http://www.roaringforksoftware.com/JSV/JS_Vision_String4.js"></SCRIPT>
Similarly, when WINDOWMGMT is selected as one of the modules to be included,
the JSV_Vision_WindowMgmt2.js file is included along with the
JSV_Vision_WindowMgmt.js file but the
SCRIPT
tag's LANGUAGE
attribute is set to
JavaScript1.2
as shown below
<SCRIPT TYPE="text/javascript"
LANGUAGE="JavaScript"
SRC="http://www.roaringforksoftware.com/JSV/JSV_Vision_WindowMgmt.js"></SCRIPT>
<SCRIPT TYPE="text/javascript"
LANGUAGE="JavaScript1.2"
SRC="http://www.roaringforksoftware.com/JSV/JSV_Vision_WindowMgmt2.js"></SCRIPT>
The functions in the JSV_Vision_WindowMgmt2.js and JS_Vision_String4.js are used in JavaScript version 1.2, or better, browsers. (See the table in the How do I work around the limitations of the JavaScript getYear method? FAQ.)
If you are interested in including (i.e., using CFINCLUDE
)
all the JavaScript Vision .js files that deal with window management,
you might use
<CFMODULE TEMPLATE="JS_VISION.cfm" USE="INCLUDE" MODULE="windowmgmt">
and the custom tag would place the
JS_Vision_Globals.js, JS_Vision_String.js, JS_Vision_String4.js, JS_Vision_HTML.js, JS_Vision_Numeric.js,
and JS_Vision_WindowMgmt.js files, surrounded by the
SCRIPT
tag, in the Web page.
If you want to link to the files so they are not included
(i.e., using the SRC
attribute of the SCRIPT
tag)
in the Web page, then change the USE
attribute to LINK
and
specify the MODULEPATH
attribute.
<CFMODULE TEMPLATE="JS_VISION.cfm"
USE="LINK"
MODULE="field,windowmgmt"
MODULEPATH="http://www.roaringforksoftware.com/JSV/">
or
<CFMODULE TEMPLATE="JS_VISION.cfm"
USE="LINK"
FIELD="Yes"
WINDOWMGMT="Yes"
MODULEPATH="http://www.roaringforksoftware.com/JSV/">
The custom tag would then place the following HTML
SCRIPT
tags in the Web page
<SCRIPT TYPE="text/javascript"
LANGUAGE="JavaScript"
SRC="http://www.roaringforksoftware.com/JSV/JS_Vision_Globals.js"></SCRIPT>
<SCRIPT TYPE="text/javascript"
LANGUAGE="JavaScript"
SRC="http://www.roaringforksoftware.com/JSV/JS_Vision_Character.js"></SCRIPT>
<SCRIPT TYPE="text/javascript"
LANGUAGE="JavaScript"
SRC="http://www.roaringforksoftware.com/JSV/JS_Vision_String.js"></SCRIPT>
<SCRIPT TYPE="text/javascript"
LANGUAGE="JavaScript1.2"
SRC="http://www.roaringforksoftware.com/JSV/JS_Vision_String4.js"></SCRIPT>
<SCRIPT TYPE="text/javascript"
LANGUAGE="JavaScript"
SRC="http://www.roaringforksoftware.com/JSV/JS_Vision_Numeric.js"></SCRIPT>
<SCRIPT TYPE="text/javascript"
LANGUAGE="JavaScript"
SRC="http://www.roaringforksoftware.com/JSV/JS_Vision_HTML.js"></SCRIPT>
<SCRIPT TYPE="text/javascript"
LANGUAGE="JavaScript"
SRC="http://www.roaringforksoftware.com/JSV/JS_Vision_Field.js"></SCRIPT>
<SCRIPT TYPE="text/javascript"
LANGUAGE="JavaScript"
SRC="http://www.roaringforksoftware.com/JSV/JS_Vision_WindowMgmt.js"></SCRIPT>
<SCRIPT TYPE="text/javascript"
LANGUAGE="JavaScript1.2"
SRC="http://www.roaringforksoftware.com/JSV/JS_Vision_WindowMgmt2.js"></SCRIPT>
Updated: |
Copyright © 1999-2000 Roaring Fork Software. All rights reserved. |