AJAX: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| Line 28: | Line 28: | ||
| * parameters: | * parameters: | ||
| ** ?msg=<code>message text</code> | ** ?msg=<code>message text</code> | ||
| * returns: ??? | |||
| <pre> | <pre> | ||
|     if (equal_ustring(getparam("cmd"), "jalm")) { |     if (equal_ustring(getparam("cmd"), "jalm")) { | ||
Revision as of 15:49, 21 August 2013
About
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=message text
 
- ?msg=
- returns: ???
   if (equal_ustring(getparam("cmd"), "jalm")) {
      
      show_text_header();
      al_get_alarms(str, sizeof(str));
      rsputs(str);
      return;
   }
- example: TBW
jalm
- JSONP: no
- parameters: no
- returns: text from al_get_alarms()
   if (equal_ustring(getparam("cmd"), "jalm")) {
      
      show_text_header();
      al_get_alarms(str, sizeof(str));
      rsputs(str);
      return;
   }
- example: TBW