Hi Peter,
> Does the filename actually make a difference?
Yes it does. Keep it always in sync with the class name.
But this wasn't your initial issue - it's an OO misunderstanding
(or you just forgot "new" :D).
Either do it like this:
.---
| ...
| button1.addListener("execute", padded_online.Dialogs.TESTFUNC, this);
| ...
.---
| qx.Class.define("padded_online.Dialogs",
| {
| extend: padded_online.Application,
| construct: function()
| {
|
| },
| members :
| {
| testFunction: function()
| {
| alert("Test member func!");
| return;
| }
| },
|
| statics :
| {
| TESTFUNC: function()
| {
| alert("Test static func!");
| }
| }
| });
|
Hint: "return;" makes no sense. In JavaScript functions without return
statements are returning undefined by default, which you are doing
explicitly.
or like that:
.---
| ...
| var dialogs = new padded_online.Dialogs();
| button1.addListener("execute", dialogs.testFunction, this);
| ...
Regards
Richard
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel