Forum: Rails Spinoffs (closed, excessive spam) prototype.js breaks treemenus from pear HTML_TreeMenu in safari

9e4b22f5ddd56dd8dcf78497dcaaacf8?d=identicon&s=25 mr s (Guest)
on 2008-07-11 17:38
(Received via mailing list)
hi all

i see a very strange behavior in safari when using prototype.js and
the pear HTML_TreeMenu

to reproduce get prototype.js (
2008/1/25/prototype- and treemenu.js (

and test the following html with safari on mac or windows (http://

        <script src="TreeMenu.js" type="text/javascript"></script>
        <script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript">
        objTreeMenu_1 = new TreeMenu("TMimages", "objTreeMenu_1",
"_self", "", true, false);
        newNode = objTreeMenu_1.addItem(new TreeNode('a', null, '',
true, true, '', '', null));
        newNode_1 = newNode.addItem(new TreeNode('b', null, '', true,
true, '', '', null));
        newNode_1_1 = newNode_1.addItem(new TreeNode('c', null, '',
false, true, '', '', null));
// ]]>

when prototype.js is not loaded all works well. when its loaded the
menu breaks. somehow the js-code from the treemenu is not executed,
but shown. this happens only in safari!

does anyone know a solution? it is also ok for me if i adapt the
treemenu.js. but as i'm not that much in js, i would be glad for any
help on this.

thank you and greetings.ivo
Ca3e484c121268e4c8302616b2395eb9?d=identicon&s=25 T.J. Crowder (Guest)
on 2008-07-11 18:41
(Received via mailing list)

We've started transitioning to a new, better-named, hopefully-spam-
free group for Prototype and

Could you please post your question there instead?  Thanks!  People
might still answer here, but probably not for all that much longer...
T.J. Crowder
tj / crowder software / com
This topic is locked and can not be replied to.