I am using:
SmartClient version 8.1.
Mozilla FireFox
I make the SmsHLayout class with some method and smartclient classes inside.
I want to call the function "testFunction" by pressing the IButton. I tried using "this.testFunction()", "testFunction()", "SmsHLayout.testFunction()". But always
"TypeError: this.testFunction is not a function @ .../SmsLayout.js:676"
How can I Call "testFunction" function inside the class?
SmartClient version 8.1.
Mozilla FireFox
I make the SmsHLayout class with some method and smartclient classes inside.
Code:
isc.defineClass("SmsHLayout", "HLayout");
isc.SmsHLayout.addProperties({
testFunction: function (param){isc.say(param)},
initWidget: function () {
this.Super("initWidget", arguments);
this.addMember(
isc.IButton.create({
size: 24,
showRollOver: true,
showDisabled: false,
showDown: true,
prompt: "RefreshData",
hoverWrap: false,
click: function (){SmsHLayout.testFunction('TESTFUNCTION');}
})
);
}
});
"TypeError: this.testFunction is not a function @ .../SmsLayout.js:676"
How can I Call "testFunction" function inside the class?
Comment