[horde] Horde 4.0-Git IMP 5.0 DIMP customized menu javascript do not worked

Gerard Breiner gerard.breiner at ias.u-psud.fr
Thu Nov 4 10:49:40 UTC 2010


Hello

Horde 4.0-git IMP 5.0 on Debian Lenny

I added some items in imp/config/menu.php but the  javascript code seems 
do not work. I mean when I click on the link of the item I added nothing 
happens. Neverttheless, I checked that javascript worked on my server.

Code Source in the navigator (firefox)
[code]
<script type="text/javascript">//<![CDATA[
Event.observe(window, "load", function() {DimpCore.clickObserveHandler({ 
d: $('menuhello'), f: function() { alert("Hello World!") } 
});DimpCore.clickObserveHandler({ d: $('tabhello'), f: function() { 
alert("Hello World!") } });
//]]></script>
[/code]

and here is my code in imp/config/menu.php

[code]
$site_menu = array(
'hello' => array(
         'action' => 'alert("Hello World!")',
         'text' => 'Say Hi!',
         'icon' => $GLOBALS['registry']->get('webroot', 'horde') . 
'/themes/graphics/horde.png')
)
[/code]

Thanks in advance for any help

Best regards

Gerard Breiner
Institut D'Astrophysique Spatiale
Orsay campus
France





More information about the horde mailing list