[imp] javascript issue in dimp

Michael M Slusarz slusarz at horde.org
Thu May 29 22:11:32 UTC 2008


Quoting jessian <jessian at usp.br>:

> hello all
>
> glad to be back on the list
>
> our new installation of horde/imp/dimp needs three customized
> links that were working on RC3 but now are not
>
> that's the error message fired by Firebug add-on of Firefox browser:
>
> missing : after property id
>
> and that's the accused javascript code of the customized menu items:
>
> document.observe("dom:loaded", function()
> {DimpCore.clickObserveHandler({ d: $('menucorreio'), function() {
> parent.location.href="/horde/imp/" } });DimpCore.clickObserveHandler({
> d: $('tabcorreio'), function() { parent.location.href="/horde/imp/" }
> });DimpCore.clickObserveHandler({ d: $('menuturba'), function() {
> parent.location.href="/horde/turba/" } });DimpCore.clickObserveHandler({
> d: $('tabturba'), function() { parent.location.href="/horde/turba/" }
> });DimpCore.clickObserveHandler({ d: $('menuoptions'), function() {
> parent.location.href="/horde/services/prefs.php?app=imp" }
> });DimpCore.clickObserveHandler({ d: $('taboptions'), function() {
> parent.location.href="/horde/services/prefs.php?app=imp" } })});

If you are using DimpCore.clickObserveHandler, the format is:
DimpCore.clickObserveHandler({ d: $('foo'), f: function() { foo(); } });

Looks like you are missing the 'f:' before your function declarations.

michael

-- 
___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the imp mailing list