AJAX: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
(The midas documentation has moved to https://midas.triumf.ca/docs/)
Tag: Replaced
 
(72 intermediate revisions by 3 users not shown)
Line 1: Line 1:
= About =
The midas documentation has moved. See [https://midas.triumf.ca/docs/develop/api/javascript/deprecated/#ajax-interface AJAX interface] on the Deprecated web features page for the new documentation about the mhttpd AJAX commands.
 
This page will document the MIDAS AJAX functions accessible through special the mhttpd URLs.
 
= jset =
 
TBW
 
= jget =
 
TBW
 
= jcopy =
 
TBW
 
= jkey =
 
TBW
 
= jmsg =
 
TBW
 
= jgenmsg =
 
* JSONP: no
* parameters:
** ?msg=<code>message text</code>
<pre>
  if (equal_ustring(getparam("cmd"), "jalm")) {
     
      show_text_header();
      al_get_alarms(str, sizeof(str));
      rsputs(str);
      return;
  }
</pre>
* example: TBW
 
= jalm =
 
* JSONP: no
* parameters: no
* returns: text from al_get_alarms()
 
<pre>
  if (equal_ustring(getparam("cmd"), "jalm")) {
     
      show_text_header();
      al_get_alarms(str, sizeof(str));
      rsputs(str);
      return;
  }
</pre>
 
* example: TBW

Latest revision as of 22:00, 30 October 2026

The midas documentation has moved. See AJAX interface on the Deprecated web features page for the new documentation about the mhttpd AJAX commands.