Hi,
I'm working on an XPCOM component used in a thunderbird (2.0) extension.
Among other things I try to open the abEditCardDialog.xul with a given
addressbook card object (nsIAbCard). Here is a snippet of my code:
---
Components.utils.reportError("abook:"+abook.value+"card:"+card.displayName);
ww.openWindow(null,"chrome://messenger/content/addressbook/abEditCardDialog.xul",
null, 'chrome,centerscreen', { abURI:abook.value,
card:card } );
---
The reportError-call was inserted to debug my problem. It reports to the
error console that abook.value and card have the expected values. But
when the edit window is opened, I get empty fields and a message from
the onload-trigger on the error console that the card parameter has no
properties. What's going on here? All examples I could find show that
window arguments must be passed as shown above.
Thanks in advance,
Norbert Püschel
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom