--On 1. Januar 2008 21:16:21 -0500 Tres Seaver <[EMAIL PROTECTED]> wrote:

What should I do to use these libraries?  Is there a canned solution for
this sort of thing?

The simplest route:

  - Create a "File" object in the ZMI for each separate javascript
    library (e.g., 'extlibrary.js').

  - Upload the static content of the library file to that object.

  - Include a link to the JS library in your master page template,

     <script type="text/javascript" src="/extlibrary.js" />

Larger JS frameworks like Dojo tend to be split across several files and directories. The fun starts when such frameworks load/reload stuff
using relative URLs. A co-worker using Dojo intensively had to invest
some time in order to integrate such a JS monster properly. As far as I remember Extjs also uses multiple files (but not as much as Dojo does)..so please check in advance.


Attachment: pgpIbHpEqBnzc.pgp
Description: PGP signature

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to