Re: TreeView error in Internet Explorer
Julien Anguenot <[email protected]>
| Newsgroups | gmane.comp.web.zope.cps.devel |
|---|---|
| Organization | NUXEO |
| Message-ID | <[email protected]> |
Santi Camps wrote:
> Hi all,
>
> I have a javascript error using IE6 when trying to view a Navigation
> Porlet with mode cps_portlet_nav_display_dyn_navtree_menu_label The
> error is not very descriptive, as is usual using that browser:
> "CPSTreeViewEditor is unknown". Anybody else have the same problem ?
>
> I've found the problem in CPSPortlets/browser/tree.pt Changing the
> dynamic load of javascript:
>
> <script type="text/javascript">
> function loadScript(id, url) {
> if (document.getElementById(id))
> return false;
> var e = document.createElement("script");
> e.src = url;
> e.type="text/javascript";
> document.getElementsByTagName("head")[0].appendChild(e);
>
> return true;
> }
> loadScript('prototype', 'prototype.js');
> loadScript('effect', 'effects.js');
> loadScript('treeview', '++resource++treenodeview.js');
> </script>
>
>
> For a static one:
>
> <script lang="javascript" src="prototype.js"></script>
> <script lang="javascript" src="effects.js"></script>
> <script lang="javascript" src="++resource++treenodeview.js"></script>
>
> Solves the problem for me. Could this be considered a bug ? If
> yes, I will add the entry and the patch in the bug tracker.
Please, open a ticket and add your patch in there :
http://svn.nuxeo.org/pub/
Thanks.
J.
--
Julien Anguenot | Nuxeo R&D (Paris, France)
Open Source ECM - www.nuxeo.com
CPS Platform - http://www.cps-project.org
Mobile: +33 (0) 6 72 57 57 66
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel
signature.asc
(application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEt0pHGhoG8MxZ/pIRAk6nAKCHp4vHsJAmCK17oeuLf37zzgPogQCggDF0 iDrD10Wo+jZEej0KIuSayKs= =xDyB -----END PGP SIGNATURE-----