--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]>
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,
    e.g.::

     <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.

-aj

Attachment: pgpttdu7ndSoF.pgp
Description: PGP signature

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

Reply via email to