cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript

thanksforfish
Champ in-the-making
Champ in-the-making
Hi,

Im looking to use the Rest API but my limited research indicates that Javascript is required to do this. Is Javascript essential, can the API be used without it ? Apologies for the uninformed question.

Thanks for any help.
2 REPLIES 2

gaurav
Champ in-the-making
Champ in-the-making
Web scripts are based on the web oriented architecture the javascript file that one creates will act as the controller for a particular web script. If you don't have any logic in the controller then one might as well not have any controller logic then its fine to not have one javascript file.

Another option you can resort to for is java backed web scripts which could act as your controller.

FYI, If one has created a java backed file and javascript file then both act as controller components where java file(s) is executed first followed by the javascript 

Here are a few links that may be helpful: http://wiki.alfresco.com/wiki/JavaScript_API

http://wiki.alfresco.com/wiki/Java-backed_Web_Scripts_Samples

Hope this helps,
Gaurav

thanksforfish
Champ in-the-making
Champ in-the-making
Thanks very much for the reply, I initially thought the javascript was at the client end for some reason thank you for clearing that up.