Client-silde Javascript within webscript's fremarker templat

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2012 04:49 AM
Hello
I have got my webscript which does have some client side javascript/jquery code.
I want to make it separate from freemarker template file.
Can anyone help me please?
Thanks
I have got my webscript which does have some client side javascript/jquery code.
I want to make it separate from freemarker template file.
Can anyone help me please?
Thanks
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2012 09:09 AM
If you want to keep your files together
If you want to hit the default /alfresco/scripts/ folder:
Good luck with your webscript!
<script type="text/javascript" > <#include "../someJsInParentFolder.js" /> <#include "someJsInSameFolder.js" /></script>
If you want to hit the default /alfresco/scripts/ folder:
<script type="text/javascript" src="/alfresco/scripts/myscript.js"></script>
Good luck with your webscript!
