Hi Philip,
> Hi,
>
> I updated my application fom 0.6.6 to 0.7.1 and still hav some problems...
>
> When I add the following code to the index html file:
>
> qx.core.Init.getInstance().defineMain(function()
> {
>     ...code...
> }
>
> I get the following error:
>
> qx.core.Init.getInstance().defineMain is not a function
>
>
> I want to pass some vars in this function from the html file to the main
> application class. I took this code from one of the domo browser
> applications. There it is working.
>
> Can somebody tell where I have to look for to solve this Problem?
>
> In 0.6.6 it works fine for me with the defineMain Function....
>
> Philipp 
>   
The method "defineMain" has been deprecated in 0.7.x. It has been 
externalized into a Mixin. If you want to use it like this you have to 
add the following line at the beginning of your code:

qx.Class.include(qx.core.Init, qx.core.MLegacyInit);


The "new" way of defining an application is to subclass 
qx.application.Gui. You can see this for example in the skeleton.


Best Fabian



-- 
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, 
Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to