[CPS-devel] TreeView error in Internet Explorer

Santi Camps scamps at earcon.com
Wed Jul 12 09:27:44 CEST 2006


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.

Regards
-- 
Santi Camps
Earcon S.L. - http://www.earcon.com
                  - http://www.kmkey.com


More information about the cps-devel mailing list

This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.