c:\export\olenmr\client\forcheckjs.htm Functions

7/24/2003 7:53:09 AM

Full Project List

divs.js Functions

function divMove(s,x,y)
function findLayer(sname)
function getDivListbox(sdiv,slistbox)
function getDivListboxSelectedItems(sdiv,slistbox,isvalues)
function getListSelectedItems(Control,isvalues)
function getOffset(aname,nimage)
function initDivs()
function moveDivLeft(sname,left)
function setDivListboxSelectedItems(A,sdiv,slistbox,isvalues)
function setListSelectedItems(A,Control,isvalues)
function writeDiv(sname,sinfo)

   

file divs.js  

view function divMove(s,x,y)
Gets the actual x and y position for where the div needs to be, then it sets up the orientation for netscape navigator 4 one way, and another way for everything else

parameters:

string

s

integer

x

integer

y

function return:

if(d==null)return null; return d;

called by:

setup_positionDiv

calls:

findLayer

   

file divs.js  

view function findLayer(sname)
Finds the version of browser being used to set up the layer format that will be used

parameters:

string

sname

function return:

if(isnn4)return CApp.document.layers[sname]; if(isnn6)return CApp.document.getElementById(sname); if(isie4)return CApp.document.all[sname]; return false;

called by:

divMove

getDivListbox

moveDivLeft

writeDiv

calls:

   

file divs.js  

view function getDivListbox(sdiv,slistbox)
Gets the listbox and places it by checking to see the browser configuration

parameters:

string

sdiv

string

slistbox

function return:

return eval("ds.document."+slistbox); return eval("CApp.document."+slistbox);

called by:

getDivListboxSelectedItems

setDivListboxSelectedItems

calls:

findLayer

   

file divs.js  

view function getDivListboxSelectedItems(sdiv,slistbox,isvalues)
Allows the user to select an item in the listbox

parameters:

string

sdiv

string

slistbox

integer

isvalues

function return:

return getListSelectedItems(getDivListbox(sdiv,slistbox),isvalues);

called by:

calls:

getDivListbox

getListSelectedItems

   

file divs.js  

view function getListSelectedItems(Control,isvalues)
Takes the items that have been selected and puts their values into an array with what is selected and the value that is selected for it

parameters:

array

Control

integer

isvalues

function action:

Creates an array

function return:

return A;

called by:

getDivListboxSelectedItems

calls:

   

file divs.js  

view function getOffset(aname,nimage)

parameters:

type?

aname

integer

nimage

function return:

if(!d)return D; if(e==null)return D; return D;

called by:

setup_positionDiv

calls:

   

file divs.js  

view function initDivs()
Checks to see if the browsers can support layers so that the divs can be created. If the browser is not nn4, ie4 or nn6, then a message is prompted saying that the page will only work with browsers that support layers

function action:

Checks browser type

function return:

NONE

called by:

appInitialize

calls:

   

file divs.js  

view function moveDivLeft(sname,left)
Orients the div to the left edge of the screen for all browsers

parameters:

string

sname

integer

left

function return:

NONE

called by:

calls:

findLayer

   

file divs.js  

view function setDivListboxSelectedItems(A,sdiv,slistbox,isvalues)
Sets the items that have been selected in the listbox and the parameters of the items being selected

parameters:

array

A

string

sdiv

string

slistbox

integer

isvalues

function return:

NONE

called by:

calls:

getDivListbox

setListSelectedItems

   

file divs.js  

view function setListSelectedItems(A,Control,isvalues)
Lists the items that have been selected

parameters:

array

A

array

Control

integer

isvalues

function return:

NONE

called by:

setDivListboxSelectedItems

calls:

   

file divs.js  

view function writeDiv(sname,sinfo)
Writes the divs themselves into the page

parameters:

string

sname

string

sinfo

function action:

Writes the divs onto the page

function return:

NONE

called by:

setup_writeCurrentDiv

setup_writeExperDiv

setup_writeJobDiv

setup_writeParamDiv

calls:

findLayer