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

7/24/2003 7:53:09 AM

Full Project List

setup.js Functions

function setup_clearParameters()
function setup_check(n)
function setup_checkExper()
function setup_checkForOther(pName)
function setup_checkJobPriority()
function setup_fixInfo(s)
function setup_getInfoButton(n,skind,slabel)
function setup_getInfoButtons(n)
function setup_getInfoIcon(i,n)
function setup_getTitleInfo(sinfo,what)
function setup_toSubmit(longtitle)
function setup_getInfoText(n)
function setup_getInfoTitle(n)
function setup_getParams()
function setup_header(n)
function setup_invokeBtn_Back(n)
function setup_invokeBtn_Cancel(n)
function setup_invokeBtn_OK(n)
function setup_invokeExperHelp()
function setup_invokeGifButton(n)
function setup_invokeGetCurrentState()
function setup_invokeGetCurrentState_error()
function setup_invokeGetCurrentState_noerror()
function setup_newInfo(type,stitle,stext,sgif)
function setup_newInfoNow()
function setup_onLoad()
function setup_paramPrompt(pName)
function setup_positionDiv()
function setup_setDefaults()
function setup_setExperiment()
function setup_setJobPriority()
function setup_setVariables()
function setup_submitJob()
function setup_submitJob_error()
function setup_submitJob_noerror()
function setupUnload()
function setup_writeHTML(u,t,longtitle)
function setup_writeHTML_error()
function setup_writeHTML_noerror()
function setup_writeHTMLInfo(n,isfirst)
function setup_writeCurrentDiv()
function setup_writeExperDiv()
function setup_writeJobDiv()
function setup_writeParamDiv(pName)

   

file setup.js  

view function setup_clearParameters()

function return:

NONE

called by:

setup_check

calls:

   

file setup.js  

view function setup_check(n)
Allows the user to select the experiment, solvent parameters and submit the experiment

parameters:

integer

n

function return:

return n; return 0; return n; return 0;

called by:

setup_invokeBtn_OK

setup_invokeGifButton

calls:

getSelectedText

getSelectedValue

getText

setup_clearParameters

setup_checkExper

setup_getParams

setup_submitJob

   

file setup.js  

view function setup_checkExper()

function return:

if(!ExperVar.position)return SetupNum["samples"]; if(!ExperVar.solvent)return SetupNum["solvent"]; if(!ExperVar.experiment)return SetupNum["selexp"]; if(!ExperVar.title || ExperVar.title=="")return SetupNum["title"]; return 0;

called by:

setup_check

calls:

   

file setup.js  

view function setup_checkForOther(pName)

parameters:

integer

pName

function return:

NONE

called by:

exper_getParamHTML

calls:

exper_isParameterOK

setup_paramPrompt

setup_writeParamDiv

   

file setup.js  

view function setup_checkJobPriority()

function return:

NONE

called by:

exper_getJobHTML

calls:

getSelectedValue

setup_setJobPriority

setup_writeJobDiv

   

file setup.js  

view function setup_fixInfo(s)
Replaces capital letter variables with dollar sign and underscore on either side with the information in the correct array

parameters:

string

s

function return:

return s;

called by:

setup_getInfoText

calls:

   

file setup.js  

view function setup_getInfoButton(n,skind,slabel)
Creates links for the setup page

parameters:

integer

n

string

skind

string

slabel

function action:

Calls invokeSetupBtn

function return:

return jRef("setup_invokeBtn_"+skind+"("+n+")",slabel);

called by:

setup_getInfoButtons

setup_getInfoIcon

calls:

jRef

   

file setup.js  

view function setup_getInfoButtons(n)
Sets up the OK, Cancel and Back buttons

parameters:

integer

n

function action:

Centers the location of the button on the page and then writes the three buttons

function return:

return s+"\n</center>\n";

called by:

setup_writeHTMLInfo

calls:

setup_getInfoButton

   

file setup.js  

view function setup_getInfoIcon(i,n)
Returns HTML code for the icons in the experiment setup sequence with one "pushed in"

parameters:

integer

i

integer

n

function action:

Write HTML with a picture or HTML code

function return:

return s;

called by:

setup_header

calls:

jRef

setup_getInfoButton

setup_invokeGifButton

   

file setup.js  

view function setup_getTitleInfo(sinfo,what)

parameters:

string

sinfo

string

what

function return:

if(i<0)return ""; return s;

called by:

setup_writeHTML_noerror

calls:

   

file setup.js  

view function setup_toSubmit(longtitle)

parameters:

integer

longtitle

function return:

NONE

called by:

analysis_invokeCopy

calls:

setup_writeHTML

   

file setup.js  

view function setup_getInfoText(n)
Returns the text associated with an experimenal setup

parameters:

integer

n

function return:

return setup_fixInfo(SetupInfo[n].text);

called by:

setup_writeHTMLInfo

calls:

selectOptionByText

createTextArea

exper_getExptList

exper_getExperDiv

exper_getJobDiv

exper_getJobHTML

exper_getParamDiv

exper_getParamHTML

exper_checkParameters

monitor_getCurrentDiv

sample_getList

setup_fixInfo

   

file setup.js  

view function setup_getInfoTitle(n)
Sets up the Title of the Setup page

parameters:

integer

n

function return:

return "<center><h2>"+SetupInfo[n].title+"</h2></center>";

called by:

setup_writeHTMLInfo

calls:

   

file setup.js  

view function setup_getParams()
Not Implemented

function return:

return exper_checkParameters(s);

called by:

setup_check

calls:

getSelectedValue

getText

exper_checkParameters

   

file setup.js  

view function setup_header(n)
Sets up the header icon for a specfic section of the setup

parameters:

integer

n

function action:

gets icon when it calls function setup_getInfoIcon

function return:

return s;

called by:

setup_writeHTMLInfo

calls:

setup_getInfoIcon

setup_onLoad

top_Menu

   

file setup.js  

view function setup_invokeBtn_Back(n)

parameters:

integer

n

function return:

NONE

called by:

calls:

setup_writeHTMLInfo

   

file setup.js  

view function setup_invokeBtn_Cancel(n)

parameters:

integer

n

function return:

NONE

called by:

calls:

main_invokeMain

   

file setup.js  

view function setup_invokeBtn_OK(n)

parameters:

integer

n

function return:

NONE

called by:

calls:

setup_check

setup_writeHTMLInfo

   

file setup.js  

view function setup_invokeExperHelp()

function return:

NONE

called by:

exper_getExperDiv

calls:

createWindow

   

file setup.js  

view function setup_invokeGifButton(n)

parameters:

integer

n

function return:

NONE

called by:

setup_getInfoIcon

calls:

setup_check

setup_writeHTMLInfo

   

file setup.js  

view function setup_invokeGetCurrentState()

function return:

NONE

called by:

monitor_getCurrentDiv

calls:

client_getCurrentState

   

file setup.js  

view function setup_invokeGetCurrentState_error()

function return:

NONE

called by:

calls:

   

file setup.js  

view function setup_invokeGetCurrentState_noerror()

function return:

NONE

called by:

calls:

setup_writeCurrentDiv

   

file setup.js  

view function setup_newInfo(type,stitle,stext,sgif)
Sets up information that is used to inform the user of what to do

parameters:

string

type

string

stitle

string

stext

string

sgif

function return:

NONE

called by:

setup_newInfoNow

calls:

   

file setup.js  

view function setup_newInfoNow()
runs setup_newInfo and has an array that associate with an action and they tell the user what they can do in the experiment section

function action:

Write HTMLreturn=NONE

function return:

NONE

called by:

setup_newInfoNow

calls:

setup_newInfo

setup_newInfoNow

   

file setup.js  

view function setup_onLoad()

function return:

NONE

called by:

setup_header

calls:

setup_positionDiv

   

file setup.js  

view function setup_paramPrompt(pName)

parameters:

integer

pName

function return:

NONE

called by:

exper_getParamHTML

setup_checkForOther

calls:

exper_isParameterOK

   

file setup.js  

view function setup_positionDiv()

function return:

NONE

called by:

setup_onLoad

setup_setJobPriority

calls:

divMove

getOffset

   

file setup.js  

view function setup_setDefaults()
Puts a default value into the parameters that can be changed later by the user when setting up the experiment

function return:

NONE

called by:

deleteSession

calls:

   

file setup.js  

view function setup_setExperiment()

function return:

NONE

called by:

exper_getExptList

calls:

getSelectedValue

setup_writeExperDiv

   

file setup.js  

view function setup_setJobPriority()

function return:

NONE

called by:

exper_getJobHTML

setup_checkJobPriority

calls:

getSelectedValue

setup_positionDiv

setup_writeJobDiv

dateString

timeUntil

   

file setup.js  

view function setup_setVariables()
Sets global values for setup

function action:

Sets SetupVar.TEAM, SetupVar.NEWUSERS, dataset info and solvent list

function return:

NONE

called by:

setup_writeHTML_noerror

calls:

sample_getList

   

file setup.js  

view function setup_submitJob()
Submits the actual experiment so that it can be run

function action:

Calls client_submitExperiment and sends the sample, experiment and parameter information

function return:

NONE

called by:

setup_check

calls:

client_submitExperiment

   

file setup.js  

view function setup_submitJob_error()
Called by server return if there is a server side error

function return:

NONE

called by:

calls:

   

file setup.js  

view function setup_submitJob_noerror()
Informs the user that the job has been sent and returns the user to the main page

function action:

Calls invokeMain so the user is sent to the main page

function return:

NONE

called by:

calls:

setup_writeHTMLInfo

   

file setup.js  

view function setupUnload()
Is not Implemented

function return:

NONE

called by:

calls:

   

file setup.js  

view function setup_writeHTML(u,t,longtitle)
Prepares to write the HTML for the experiment page

parameters:

integer

u

string

t

integer

longtitle

function return:

NONE

called by:

main_invokeSetup

setup_toSubmit

calls:

client_getSetupInfo

setup_writeHTML_noerror

   

file setup.js  

view function setup_writeHTML_error()
If there is an error in writing the HTML, it notes it in the log and sends the user to the main page

function action:

Write to the log and call invokeMain

function return:

NONE

called by:

calls:

doLog

main_invokeMain

   

file setup.js  

view function setup_writeHTML_noerror()
Gets the information to be written in HTML and calls setup_writeHTMLInfo to write it

function return:

NONE

called by:

setup_writeHTML

calls:

appWrite

appWriteDirect

setup_getTitleInfo

setup_setVariables

setup_writeHTMLInfo

   

file setup.js  

view function setup_writeHTMLInfo(n,isfirst)
Writes the HTML for the experiment page from functions getInfoTitle, getInfoText and getInfoButtons

parameters:

integer

n

integer

isfirst

function action:

Write HTML

function return:

var sf0="\n<form onSubmit=\"return false;\">\n"; if(isfirst)return s;

called by:

exper_getJobHTML

setup_invokeBtn_Back

setup_invokeBtn_OK

setup_invokeGifButton

setup_submitJob_noerror

setup_writeHTML_noerror

calls:

appWrite

doLog

setup_getInfoButtons

setup_getInfoText

setup_getInfoTitle

setup_header

   

file setup.js  

view function setup_writeCurrentDiv()

function return:

NONE

called by:

setup_invokeGetCurrentState_noerror

calls:

writeDiv

monitor_getCurrentDiv

   

file setup.js  

view function setup_writeExperDiv()

function return:

NONE

called by:

setup_setExperiment

calls:

writeDiv

exper_getExperDiv

   

file setup.js  

view function setup_writeJobDiv()

function return:

NONE

called by:

exper_getJobHTML

setup_checkJobPriority

setup_setJobPriority

calls:

writeDiv

exper_getJobDiv

   

file setup.js  

view function setup_writeParamDiv(pName)

parameters:

integer

pName

function return:

NONE

called by:

exper_getParamHTML

setup_checkForOther

calls:

writeDiv

exper_getParamDiv