Hi,
I am new to Zimbra and working with 5.0.9. I have developed following classes for a zimlet -
Pop-up class - SampleDialog extends DwtDialog
TabView class - SampleTabView extends DwtTabView
when user clicks on a zimlet link SampleDialog opens up and tries to instantiate SampleTabView thru a method call _initializeSampleTabView. SampleTabView has following content -
SampleTabView = fuction(parent, className, position){
DwtTabView.call(this,parent,className,position);
};
SampleTabView.prototype = new DwtTabView;
SampleTabView.prototype.constructor = SampleTabView;
SampleDialog and SampleTabView are located in a single file SampleDialog.js
Problem - I am getting following error whenever SampleDialog tries to execute _initializeSampleTabView method. The error is -
"this.__initCtrl is not a function"
I created another class, TestTabView with same content as SampleTabView and placed in a seperate file as TestTabView.js.However whenever SampleDialog tries to instantiate this class thru _initializeSampleTabView I am getting other error -
"TestTabView is not defined"
I ensured thru firebug console that the required js files are fetched by browser.
Can somebody please help me to resolve this issue.
Thanks in advance.


LinkBack URL
About LinkBacks

