AnsweredAssumed Answered

Problem Importing Javascript file

Question asked by briboe on Jun 13, 2008
Latest reply on Apr 4, 2014 by cyr
I am trying to import a javascript file from the repository into a webscript .js.  I used the syntax from the Javascript API cookbook:

<import resource="/Company Home/Data Dictionary/Scripts/mylib.js">

It is the first line in my script and the file exsists in the repository.  However when I attempt to run the webscript I get:

Failed to execute script '/helloWorld/helloworld.get.js (in repository store workspace://SpacesStore/Company Home/Data Dictionary/Web Scripts Extensions)': missing ; before statement (AlfrescoScript#1)

I am running 2.9c(816) on windows under tomcat.  Any help would be appreciated.

Outcomes