=== modified file 'src/docbkx/en/dhis2_user_man_apps.xml'
--- src/docbkx/en/dhis2_user_man_apps.xml 2013-10-13 10:43:53 +0000
+++ src/docbkx/en/dhis2_user_man_apps.xml 2013-10-13 10:46:42 +0000
@@ -63,12 +63,12 @@
>activities part will look similar to this after the App has been
installed:
"activities": {
- "dhis": {
- "href": "http://apps.dhis2.org/demo"
- }
- }
+ "dhis": {
+ "href": "http://apps.dhis2.org/demo"
+ }
+ }
To read the JSON structure into Javascript you can use a regular AJAX request and parse
- the JSON into an object. Most Javascript libraries provide support for this, for instance with
+ the JSON into an object. Most Javascript libraries provide some support, for instance with
jQuery it can be done like this:
$.getJSON( "manifest.webapp", function( json ) {
var apiBaseUrl = json.activities.dhis.href + "/api";