Example MIDAS Javascript functions

Last updated: never

Example of mhttpd <odb> tag

This data is updated by web page reload - press your web browser "reload" button

Settings/Example_int:

Variables/SLOW[2]:

Example javascript update function

Example of ODBGet() javascript function

This data is updated by the javascript update() function - press the "update" button

Settings/Example_int: not loaded yet

Variables/SLOW[2]: not loaded yet

Example of ODBSet() javascript function

Press these buttons to write new values to ODB. ODB variables of appropriate type have to be created before calling ODBSet(). Observe updated values in the section above.

Set Settings/Example_int to:

Set Settings/Example_int to any value: (type in any value and press Enter)

Example of ODBRpc_rev0() javascript function

Call the rpc_callback function in our frontend program:

Observe the output of our rpc handler in midas messages

Example of ODBRpc_rev1() javascript function

Call the rpc_callback function in fejrpc.cxx:

Data returned by the RPC call:


    

Observe the output of our rpc handler in midas messages

Example of ODBGetMsg() javascript function

(empty)
    

Example of ODBGenerateMsg() javascript function

Type in a message and press Enter. To see the new message, press "Get MIDAS messages" above


MIDAS Example
Last modified: Mon Feb 28 08:21:38 PST 2011