[dev] Dynamic sidebar menu elements not refreshing

Roel Gloudemans roel at gloudemans.info
Tue Nov 9 08:44:07 PST 2004


If I remember correctly (I fixed a problem in this code once); on refresh it
tries to load an URL, but if there is a problem with the URL if fails
gracefully (you won't notice). So my guess is to take a look at the URL 
that is
used to refresh te menu. (Take care not to miss things like &)

Cheers,
Roel.

Quoting Rick Emery <rick at emery.homelinux.net>:

> Quoting Chuck Hagenbuch <chuck at horde.org>:
>
>> No, but the js httpclient not speaking https was the only thing I could
>> come up
>> with. This is really only being seen by you; I don't know what to 
>> tell you at
>> this point other than to go debug. Look at the access logs, trace the code,
>> etc.
>
> Sorry to bother everybody with this again, but I need some guidance.
>
> In horde/templates/horde/menu.inc, in MenuUpdateHandler I added:
>
> alert(result);
>
> before and after the line:
>
> eval(result);
>
> On update (currently set to every minute), I get a pop-up of the javascript
> code before the eval is performed, but the pop-up after never 
> appears. Nothing
> is logged in the javascript console (firefox) and no javascript errors are
> reported (IE 6). In the source of the frame, I see, for example:
>
> n_horde_menu['imp']['label'] = '<b>Mail</b> (31)';
>
> After I read a message, I see in the pop-up:
>
> n_horde_menu['imp']['label'] = '<b>Mail</b> (30)';
>
> but the label in my sidebar never changes.
>
> So, based on the evidence I have right now, the code in "result" appears
> correct, but the "eval(result);" appears to be failing with no error 
> logged to
> the javascript console.
>
> Can anybody give me advice on where to go from here?
>
> Thanks in advance,
> Rick
> -- Rick Emery
>
> "When once you have tasted flight, you will forever walk the Earth
>   with your eyes turned skyward, for there you have been, and there
>   you will always long to return"
>                                                -- Leonardo Da Vinci
>
>
> -- Horde developers mailing list - Join the hunt: http://horde.org/bounties/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org
>







More information about the dev mailing list