cancel
Showing results for 
Search instead for 
Did you mean: 

Different javascript ?

pat9rv3sousa
Champ on-the-rise
Champ on-the-rise
I'm trying to create a new page in Alfresco, but the tutorials gives to me the information that i have to create three files: new-page.get.js new-page.html.ftl and new-page.get.xml , like Aikau -> http://docs.alfresco.com/5.0/concepts/dev-extensions-share-page-creation.html

But when I'm trying to programming the javascript, "alert is not defined, window is not defined" and I see in the tutorials that I have to made models and widgets. I can't programming the javascript like a normal javascript ? Where I access more information about this javascript ? I can't programming this.
1 REPLY 1

muralidharand
Star Contributor
Star Contributor
Alfresco support two kinds of Javascript.
* Client Side javascript = which runs in the browser.
* Server side javascript = Which runs in the Server - tomcat

All the webscript Javascripts like .get.js,  *.post.js runs in the Serverside and some of functionalities are limited here. For Ex: You can't alert, window kinds of statements. Mostly all the webs

If the javascript ends with .js or -min.js and will run within the browser and these javascript  files will be reside in webapps\share\components directory and few presents in the webapps\share\modules directory also.

http://thoughtworker.in/2008/04/22/alfresco-server-side-javascript-anyone-interested/


Please let me know, if you need any more information on this.