Creating a callback example involves creating an HTML page that invokes the Hello User web script with a callback that displays the JSON response in an alert box.
Note: For security reasons, this mechanism is disabled by default.
To enable it on any web scripts container, set the bean property:
allowCallbacks = true. This change can be made in
web-scripts-application-context.xml, or more conveniently
outside of the alfresco.war file in
tomcat/shared/classes/alfresco/extension/custom-web-context.xml.
An alert box displaying the message hello admin indicates
your callback is working.