--On 2. Januar 2008 06:16:06 +0100 Andreas Jung <[EMAIL PROTECTED]> wrote:

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

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.

Another point: consider using CMF and putting your library files into a
directory system view on the filesystem. This makes your life much easier.


Attachment: pgpttdu7ndSoF.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