AnsweredAssumed Answered

How to configure Alfresco 4.0.e allowing callback for json

Question asked by pierluigi on Sep 7, 2012
Latest reply on Sep 11, 2012 by abarisone
Hi everybody, this is my first post here…

I would like to provide (in Alfresco 4.0.e) the mechanism which wraps the JSON output text in parentheses and a function name (the callback). A callback is invoked by adding the following URL parameter on JSON URL requests:
alf_callback=function
where function is the name of a client-side JavaScript function to be invoked.

As suggested here:
http://wiki.alfresco.com/wiki/Web_Scripts#JSON_Callbacks
I have tried adding this line
"<property name="allowCallbacks"><value>true</value></property>"
in this cofiguration file
"/opt/alfresco-4.0.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/web-scripts-application-context.xml"

but now when my application tries to execute a script, it appears a login window with unknows username and password…

Any suggests?
Thanks in advance

Outcomes