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 ?

--
commits mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]

Reply via email to