Results 1 to 6 of 6

Thread: Surf support for JS file import

Threaded View

  1. #1

    Default Surf support for JS file import

    I am familiar with Alfresco Web Scripts where I used the following syntax to include JavaScript (JS) library files:

    <import resource="classpath:alfresco/extension/templates/webscripts/com/ihg/hcm/utils.js">

    This is quite handy! Looks like syntax straight out of a Spring application context file.

    I attempted to use this syntax in a JS file within Spring Surf to no avail. I am hoping that some form of the import functionality was ported as part of moving Web Scripts to Spring Surf. Is this the case?

    Otherwise, it looks rather painful to accomplish a file import in ECMA. Am I missing something?

    Thanks,

    Bob
    Last edited by BoJo; Sep 22nd, 2010 at 10:44 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •