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

7/24/2003 7:53:09 AM

Full Project List

client.js Functions

function client_sendXWinCommand(scmd)
function client_doJobAction(sreturnfunc,JobAction)
function client_getDataInfo(sreturnfunc,stype,sdata)
function client_getCurrentState(sreturnfunc)
function client_getJobInfo(sreturnfunc)
function client_getSetupInfo(sreturnfunc)
function client_getSpectrum(sreturnfunc,stype,sdataset,iexpno,ipdata,ppmrange,sintrng)
function client_logIn(sreturnfunc,thisuser,spassword)
function client_logOut(sreturnfunc)
function client_modifyTeams(sreturnfunc,sinfo)
function client_setTeam(sreturnfunc,thisteam)
function client_submitExperiment(sreturnfunc,sinfo)
function serverCall(sreturnfunc,scmd,spar,iswithSID)
function serverQuickFix(s)
function serverReturn(s)
function serverReturnAction()

   

file client.js  

view function client_sendXWinCommand(scmd)

parameters:

string

scmd

function return:

NONE

called by:

analysis_getXWin

calls:

doLog

   

file client.js  

view function client_doJobAction(sreturnfunc,JobAction)
Calls the server and the server allows a job to be cancelled, reinstated or suspended

parameters:

string

sreturnfunc

array

JobAction

function action:

returns a function that allows a job to be cancelled, reinstated or suspended

function return:

NONE

called by:

monitor_invokeJobAction

calls:

serverCall

   

file client.js  

view function client_getDataInfo(sreturnfunc,stype,sdata)
Gets the data from the server so that the user can call it in the analysis page and see their spectra

parameters:

string

sreturnfunc

string

stype

string

sdata

function return:

NONE

called by:

analysis_getDataInfo

calls:

serverCall

   

file client.js  

view function client_getCurrentState(sreturnfunc)

parameters:

string

sreturnfunc

function return:

NONE

called by:

setup_invokeGetCurrentState

calls:

serverCall

   

file client.js  

view function client_getJobInfo(sreturnfunc)
Calls the server to get information on the job

parameters:

string

sreturnfunc

function action:

Writes HTML from the monintor function

function return:

NONE

called by:

calls:

serverCall

   

file client.js  

view function client_getSetupInfo(sreturnfunc)
Calls the server to get setup information

parameters:

string

sreturnfunc

function action:

Writes HTML from the setup function

function return:

NONE

called by:

setup_writeHTML

calls:

serverCall

   

file client.js  

view function client_getSpectrum(sreturnfunc,stype,sdataset,iexpno,ipdata,ppmrange,sintrng)
Gets the spectrum data produced from the sample so that the user can view

parameters:

string

sreturnfunc

string

stype

string

sdataset

integer

iexpno

integer

ipdata

integer

ppmrange

string

sintrng

function return:

NONE

called by:

analysis_getSpectrum

calls:

serverCall

   

file client.js  

view function client_logIn(sreturnfunc,thisuser,spassword)
Login to the server with user name, team name and password

parameters:

string

sreturnfunc

string

thisuser

string

spassword

function action:

calls server and send strings of user name, team name and password

function return:

NONE

called by:

login

calls:

serverCall

   

file client.js  

view function client_logOut(sreturnfunc)
Logs out of the the server

parameters:

string

sreturnfunc

function action:

calls the server and logs the user out of the system

function return:

NONE

called by:

logout

calls:

serverCall

   

file client.js  

view function client_modifyTeams(sreturnfunc,sinfo)
Calls the server to modify the teams

parameters:

string

sreturnfunc

string

sinfo

function action:

calls server

function return:

NONE

called by:

team_applyTeamChanges

calls:

serverCall

   

file client.js  

view function client_setTeam(sreturnfunc,thisteam)
Calls the server to set the team

parameters:

string

sreturnfunc

string

thisteam

function action:

calls server

function return:

NONE

called by:

login_invokeSetTeam

calls:

serverCall

   

file client.js  

view function client_submitExperiment(sreturnfunc,sinfo)
Calls server to submit the job for an experiment

parameters:

string

sreturnfunc

string

sinfo

function action:

Calls server

function return:

NONE

called by:

setup_submitJob

calls:

serverCall

   

file client.js  

view function serverCall(sreturnfunc,scmd,spar,iswithSID)
Allows information to be sent from the remote computer to the serving computer that the server can then interpret

parameters:

string

sreturnfunc

string

scmd

string

spar

integer

iswithSID

function action:

submits a form to the server, calls functions to write log and the fraServer document

function return:

clientreturnfunc=sreturnfunc //..._error() or ..._noerror() will be called by return JS;

called by:

client_doJobAction

client_getDataInfo

client_getCurrentState

client_getJobInfo

client_getSetupInfo

client_getSpectrum

client_logIn

client_logOut

client_modifyTeams

client_setTeam

client_submitExperiment

calls:

doLog

hidden

serverWrite

serverQuickFix

serverReturn

login_getSessionInfo

   

file client.js  

view function serverQuickFix(s)
Used for debugging

parameters:

string

s

function return:

{return s.replace(/[\ \;\n]/g,"")}

called by:

serverCall

calls:

   

file client.js  

view function serverReturn(s)
Takes information given to the server and evalutes the string

parameters:

string

s

function action:

Evaluate string that is returned by the server; calls [retutrnfunc].error or [returnfunc].noerror

function return:

NONE

called by:

serverCall

calls:

doLog

serverWrite

serverReturnAction

   

file client.js  

view function serverReturnAction()
Replaced by the server and then executed. This is the sole means by which the server communicates with the client.

function return:

return false;

called by:

serverReturn

calls: