cancel
Showing results for 
Search instead for 
Did you mean: 

Web Script calling another Web Script

rdifrango
Champ in-the-making
Champ in-the-making
Is there a way to have 1 Web Script call another one?
3 REPLIES 3

mikeh
Star Contributor
Star Contributor
There's the remote object built into the Surf framework: http://wiki.alfresco.com/wiki/Surf_Platform_-_Freemarker_Template_and_JavaScript_API#remote

However this isn't possible from a Repository webscript. You might want to investigate JavaScript and/or Freemarker includes to achieve the same thing.

Thanks,
Mike

lyamamot
Champ in-the-making
Champ in-the-making
Is this not possible even from a Java-based Web Script? I would like to use one script to run an arbitrary script as a different user.

rmorant
Champ in-the-making
Champ in-the-making

var response = remote.connect("http").get(webScriptURL);