Mhttpd.js: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| Line 26: | Line 26: | ||
| = Functions = | = Functions = | ||
| function getMouseXY(e) | * function getMouseXY(e) | ||
| * function XMLHttpRequestGeneric() | |||
| * function ODBSet(path, value, pwdname) | |||
| * function ODBGet(path, format, defval, len, type) | |||
| * function ODBMGet(paths, callback, formats) | |||
| * function ODBGetRecord(path) | |||
| * function ODBExtractRecord(record, key) | |||
| * function ODBKey(path) | |||
| * function ODBCopy(path, format) | |||
| * function ODBRpc_rev0(name, rpc, args) | |||
| * function ODBRpc_rev1(name, rpc, max_reply_length, args) | |||
| * function ODBGetMsg(n) | |||
| * function ODBGenerateMsg(m) | |||
| * function ODBGetAlarms() | |||
| * function ODBEdit(path) | |||
| function ODBSet(path, value, pwdname) | |||
| function ODBGet(path, format, defval, len, type) | |||
| function ODBMGet(paths, callback, formats) | |||
| function ODBGetRecord(path) | |||
| function ODBExtractRecord(record, key) | |||
| function ODBKey(path) | |||
| function ODBCopy(path, format) | |||
| function ODBRpc_rev0(name, rpc, args) | |||
| function ODBRpc_rev1(name, rpc, max_reply_length, args) | |||
| function ODBGetMsg(n) | |||
| function ODBGenerateMsg(m) | |||
| function ODBGetAlarms() | |||
| function ODBEdit(path) | |||
Revision as of 21:50, 12 August 2013
About
mhttpd.js contains javascript function wrappers for most MIDAS AJAX functions typically used for implementing interactive custom pages for MIDAS experiments.
mhttpd.js is typically served by mhttpd from $MIDASSYS/resources/mhttpd.js
<html> <head> ... <script src='mhttpd.js'></script> ... </head> ... </html>
A mostly up to date copy of mhttpd.js is linked here:
An example for using all mhttpd.js functions is included in the MIDAS distribution under examples/javascript1:
- http://ladd00.triumf.ca/~daqweb/doc/midas/examples/javascript1/
- http://ladd00.triumf.ca/~daqweb/doc/midas/examples/javascript1/example.html
Functions
- function getMouseXY(e)
- function XMLHttpRequestGeneric()
- function ODBSet(path, value, pwdname)
- function ODBGet(path, format, defval, len, type)
- function ODBMGet(paths, callback, formats)
- function ODBGetRecord(path)
- function ODBExtractRecord(record, key)
- function ODBKey(path)
- function ODBCopy(path, format)
- function ODBRpc_rev0(name, rpc, args)
- function ODBRpc_rev1(name, rpc, max_reply_length, args)
- function ODBGetMsg(n)
- function ODBGenerateMsg(m)
- function ODBGetAlarms()
- function ODBEdit(path)