[dev] Dynamic sidebar menu elements not refreshing
Jan Schneider
jan at horde.org
Tue Nov 9 11:41:00 PST 2004
Zitat von 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.
You don't get an error because the eval is in a try-catch-block. remove the
try and catch parts some line below, and only keep the client.asynchGet
call. Then you should get some errors in the JS console.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the dev
mailing list