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

7/24/2003 7:53:09 AM

Full Project List

login.js Functions

function appInitialize()
function deleteSession()
function login_getSessionInfo()
function login_invokeLogin()
function login_invokeSetTeam(thisteam)
function login_invokeSetTeam_error()
function login_invokeSetTeam_noerror()
function login_invokeSetTeamName()
function login()
function login_error()
function login_noerror()
function login_setDefaults()
function login_writeHTML()
function login_show(idotop)
function login_writeHTMLTeam(idotop)
function login_writeInfo()
function loginUnload()
function logout(serrfunc)
function logout_error()
function logout_hRef(text)
function logout_noerror()
function parentof(swho)
function pwEncode(sp)

   

file login.js  

view function appInitialize()
Initializes the writing of divs

function return:

NONE

called by:

calls:

initDivs

login_writeHTML

   

file login.js  

view function deleteSession()
Deletes a session from memory

function action:

Creates an array

function return:

NONE

called by:

login

logout

calls:

doLog

analysis_setDefaults

login_setDefaults

setup_setDefaults

team_setDefaults

   

file login.js  

view function login_getSessionInfo()

function return:

return sessioninfo;

called by:

serverCall

calls:

   

file login.js  

view function login_invokeLogin()

function return:

NONE

called by:

login_writeHTML

calls:

login

   

file login.js  

view function login_invokeSetTeam(thisteam)

parameters:

string

thisteam

function return:

NONE

called by:

login_invokeSetTeamName

team_shows

calls:

doLog

client_setTeam

   

file login.js  

view function login_invokeSetTeam_error()

function return:

NONE

called by:

calls:

doLog

login_writeHTML

   

file login.js  

view function login_invokeSetTeam_noerror()

function return:

NONE

called by:

calls:

main_invokeMain

   

file login.js  

view function login_invokeSetTeamName()

function return:

NONE

called by:

login_writeHTMLTeam

calls:

login_invokeSetTeam

main_invokeMain

team_allowSwitchTeams

   

file login.js  

view function login()
Takes the username and password and sends it to the server to allow a log on

function action:

Writes to the main log

function return:

NONE

called by:

login_invokeLogin

calls:

client_logIn

deleteSession

pwEncode

   

file login.js  

view function login_error()
If there is an error during logging in, a message appears and it logs the user out

function action:

Gives an alert saying you can't log in

function return:

NONE

called by:

calls:

logout

   

file login.js  

view function login_noerror()
If there is no error when logging in, the user is allowed into the system action=

function return:

NONE

called by:

calls:

login_writeHTMLTeam

   

file login.js  

view function login_setDefaults()
Sets the defaults for the login screen

function return:

NONE

called by:

deleteSession

calls:

   

file login.js  

view function login_writeHTML()
Writes the HTML that says what server the user is logging into, gives text boxes to input the user name and password and gives the links to login or go back to the main page

function action:

Write HTML for the login page

function return:

NONE

called by:

appInitialize

login_invokeSetTeam_error

logout_noerror

main_invokeLogOut

calls:

appWrite

serverWrite

login_invokeLogin

login_writeInfo

topInfo

   

file login.js  

view function login_show(idotop)

parameters:

integer

idotop

function return:

NONE

called by:

team_getTeamList

calls:

login_writeHTMLTeam

   

file login.js  

view function login_writeHTMLTeam(idotop)
Displays a list of the teams that the user is assigned to and allows them to select which of them they would like to log in as

parameters:

integer

idotop

function action:

once a team is picked, a form is sent to the server

function return:

s+="<center><form name=info onSubmit=\"return false;\"><table>";

called by:

login_noerror

login_show

main_invokeSwitchTeam

calls:

appWrite

hRef

jRef

login_invokeSetTeamName

logout_hRef

team_allowSwitchTeams

team_getTeamList

menu_showIcons

topInfo

   

file login.js  

view function login_writeInfo()
No longer writes anything because it is all commented, but it used to inform the user that no instrument was actually connected to the system

function return:

return s;

called by:

login_writeHTML

calls:

   

file login.js  

view function loginUnload()
Not Implemented

function return:

NONE

called by:

calls:

   

file login.js  

view function logout(serrfunc)
Deletes the session files from the log and logs the user out of the site

parameters:

string

serrfunc

function return:

NONE

called by:

login_error

calls:

client_logOut

deleteSession

   

file login.js  

view function logout_error()
If there is an error loggin out, it notes that in the log

function action:

Writes to log

function return:

NONE

called by:

calls:

doLog

logout_noerror

   

file login.js  

view function logout_hRef(text)
When logout is selected, javascript is run when the link is used and it sends the user to the intro page

parameters:

string

text

function action:

Makes HTML link for a JavaScript command

function return:

return jRef("main_invokeLogOut()",text+" "+username+"/"+teamname);

called by:

login_writeHTMLTeam

calls:

jRef

main_invokeLogOut

   

file login.js  

view function logout_noerror()
Writes a blank to the log so that it can be seen that there was no error

function action:

Writes to the log

function return:

NONE

called by:

logout_error

calls:

doLog

login_writeHTML

   

file login.js  

view function parentof(swho)

parameters:

string

swho

function return:

if(i==j)return ""; return swho.substring(0,j);

called by:

team_getTeamList

calls:

   

file login.js  

view function pwEncode(sp)
A mathematic operation that is used to encode the password while it is being transferred over the network

parameters:

string

sp

function return:

return sout;

called by:

login

calls: