
11-12-2007, 10:00 AM
|
| Zimlet Guru & Moderator | |
Posts: 467
| |
Quote:
Originally Posted by marinew Thanks a lot for your help, JoshuaPrismon !
I didn't know about existence of "onShowView" function. That's a good thing.
I used it for the first problem, and this works, now.
One precision : I had to try to addListener on calendar viewManager both in "onShowView" event, and on Zimlet "init" function. Because :
- sometimes, Zimlet is already initialized when "onShowView" event is raised => OK.
- But sometimes, "onShowView" seems to be thrown before Zimlet is initialized => my zimlet "onShowView" function isn't executed, but init function can here be used.
For second problem : Unfortunately, "onShowView" event is raised when we change view between Mail app, Calendar ap... But it isn't raised if I am on calendar app, when I switch between calendar day/week/... views
So, for second and third problem, I will have to test your strategy number two, using "AjxDispatcher.run".
I don't know anything about this function.
Could you please tell me more about it, or point me on some documentation or forum posts talking about it ?
Thanks again for your help. | To be honest (and frankly this is my fault since I have been working on this), there isn't a lot of documentation on this. Here are some quick notes: - When the Zimbra code was retooled for 5.0, the biggest new thing was the modular code base.
- Parts of the applicaiton are now loaded on the fly.
- To force a particular module to be loaded, you use AjxDispatcher.run against a package name that normally corresponds to the path of the javascript files.
- The exception here is the Zimlet code, which is all munched together and served out of a single Zimlet .zgz file.
- Appending &dev=1 eliminates the modular loading, and also the minimization so you have real code to look at in firebug.
- But it also can change behavior.
|