The code is correct, but you don’t have a MainPage. You have an instance of Window1 which is accessible as App.Window1.
In case your app creates multiple Window1 objects, then the App.member becomes an array.
The code in the same is like this:
You can find the list of events here: http://www.qooxdoo.org/current/apiviewer/#qx
ok that looks fine, but what I have to do, is a little bit different.
Please have a look on the demo project attached, to see what I tried:
I have plain html , which I show in the HtmlPanel. On a table element i have a click event, which calls a java script, that I put in Default.htm. This script is invoked, but my callback in this script to the server App.MainPage.PreviewEditAction not invoked
(index):12 Uncaught TypeError: Cannot read property ‘PreviewEditAction’ of undefined(…)
So how must the server callback look like?