[horde] Horde 4.0-Git IMP 5.0 DIMP customized menu javascript do not works
Gerard Breiner
gerard.breiner at ias.u-psud.fr
Fri Nov 5 15:18:47 UTC 2010
Hello,
Eventually I understand why it doesn't works...
clickObserveHandler function is called in imp/index-dimp.php but is not
declared in dimpCore.js!
Gerard
Gerard Breiner a écrit :
> Hello,
>
> Do I understand that nobody has encountered this problem with Horde
> 4.0-Git and therefore it comes from my settings ?
> I have another server Horde 3.2.2-cvs Dimp H3 (1.1-cvs) on a CentOS
> and the customized menu works very fine.
> What tests I can do for debugged this please ?
> Thanks in advance for any help
>
> Best regards
>
> Gerard Breiner
> Gerard Breiner a écrit :
>> 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