[commits] [Wiki] changed: Doc/Dev/HordeAjaxApplications

Ralf Lang (B1 Systems GmbH) lang at b1-systems.de
Fri Nov 23 08:45:49 UTC 2018


rlang  Fri, 23 Nov 2018 08:45:49 +0000

Modified page: https://wiki.horde.org/Doc/Dev/HordeAjaxApplications
New Revision:  12
Change log:  on client-side environment vars

@@ -146,9 +146,16 @@
  important hordecore.js HordeCore class methods:
  * doAction(action, params, opts) - client side method for ajax  
requests against Horde_Ajax_Application
  * submitForm(form, opts) - ajax request to submit a form

-TODO
+Depending on the presentation type (Dynamic, Smartmobile), the  
((Doc/Dev/PageOutput|PageOutput php helper)) injects some default  
javascript environment.
+
+* HordeCore.conf provides configurable or runtime-generated information
+* HordeCore.conf.TOKEN is the request token to identify the client  
session when calling the Ajax framework for more data
+* HordeCore.conf.URI_AJAX is the URL to the Ajax service endpoint for  
the current app
+* HordeCore.text provides a hash of messages translated to the  
current environment
+
+If you need to provide dynamic initialization data specific to your  
app, use ((Doc/Dev/PageOutput|PageOutput->addInlineJsVars())) in your  
application page.

  ++ The big picture

  * When do I use a service/ajax.php handler as opposed to a  
rampage.php Controller ?



More information about the commits mailing list