AnsweredAssumed Answered

problem of linking a javascript to a webscript

Question asked by seraphon on Jul 3, 2007
Latest reply on Jul 20, 2007 by mikeh
Hi

I ve wanted to put a copy of the files used for the new myspace webscript in the Alfresco space webscripts extension so that I could do some customisation to those files while keeping the originals untouched.
I though that the myspace webscript was a good start to see how to do a custom GUI for Alfresco.
So I ve created the subspaces org/alfresco/sample/test in webscripts extension and I put the following files in it
myspaces2.get.desc.xml
myspaces2.get.html.ftl
myspaces2.js
myspaces_preview_panel2.ftl
myspacespanel2.get.desc.xml
myspacespanel2.get.html.ftl
myspaces-webscript2.jsp
After updating in these files the new file's names I did the update webscript service and thus I got 42 webscript detected.

When I went to http://localhost:8080/alfresco/wcs/sample/myspaces2

I got the page myspaces but without the icons for the spaces or content.
I think it must be because I ve put a wrong path in myspaces2.get.html.ftl in order to integrate myspaces2.js

<script type="text/javascript" src="/org/alfresco/sample/test/myspaces2.js"></script>

Can someone please tell me what I should put? I ve tried a lot of different path but I seem to misunderstand something
Any help would be appreciated
Regards Seraphon

Outcomes