Hi developer,

I am a qooxdoo newcomer and have a frustrating 
problem with external script files.
 
I am including a external script file by using the line

 <script type="text/javascript" src="script/screen.js"></script>

in source/index.html.

screen.js contains the function initScreen(), which includes among 
others  the statements

    page[0] = new qx.ui.tabview.Page("Startseite");
    page[0].setLayout(new qx.ui.layout.Canvas());

I invoke initScreen() in Application.js and all is fine. But only in
the source enviroment. 

I am using ./generate.py build to create a build version of my 
application. That runs without any error messages. I am using
the original config.json without changes and then I copy 
screen.js from /source/scripts to /build/scripts.

When I run /build/index.html I will get the error:

qx.ui.tabview has no properties
/qooxdoo/MyApp/build/script/screen.js

That's a debug message from FF (Linux).
FF (Windows) simlarly says:
qx.ui.tabview is undefined

Other functions without reference to qx..... are
fine.

I examined the type of qx within initScreen() as 
follows:

a) alert(typeof qx); 

 result = object

b) alert(typeof qx.ui);

 result = object

c) alert(typeof qx.ui.tabview);

 result = undefined



When I put the function initScreen() directly in
Application.js then all is fine.

As I mentioned above the error occurs only
in the build Version, the source/index.html
works fine.

I am clueless. Who knows what is going on?

I am using the latest version of qooxdoo (0.82)

I am looking forward for any hints and thank
everyone who can help.

Thanks




------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to