Hi Alex,
I finally found it. It was my fault :(
When I switched to new qooxdoo version, I also added new lines of code to
Manager.js, I had too much comments in the file, that I forgot closing }
for construct:: function and }); between them and wrote some source lines
after those } :( Omg it took me so much time fooling around qooxdoo build
system and fogot to chech source code.
May be parser could remind me that I have some code after last "}" :)
To thank you, may be I have some improvement for rpc.js :)
in this code: when response is null (when the reply is not XML data, i.e.
some server error or bad call, it happened to me when I was restarting
webserver). Then id = response["id"] raises error, because response is
null, so may be code:
response = evt.getContent();
id = response["id"];
if (id != this.getSequenceNumber())
{
this.warn("Received id (" + id + ") does not match requested id " +
"(" + this.getSequenceNumber() + ")!");
}
var exTest = response["error"];
could be
req.addListener("completed", function(evt)
{
response = evt.getContent();
var exTest=null;
if (response==null) {
this.warn('response was null or something'
exTest = 'Response was null';
} else {
id = response["id"];
if (id != this.getSequenceNumber())
{
this.warn("Received id (" + id + ") does not match requested
id " +
"(" + this.getSequenceNumber() + ")!");
}
exTest = response["error"];
}//response was not null
I mean - check if response is not null.
Thanks for trying to help me,
Martin
> Yes. Better use the source version and try it. Check for the files which
> are loaded from the webserver. In the source version every class is
> loaded separately, so you should get a bunch of requests when starting
> the app. If not, report the errors here and we'll look after them ;-)
>
> cheers,
> Alex
>
>
>>> Hi Martin,
>>>
>>> Martin wrote:
>>>> I tried it now (distclean,source), but it didn't help.
>>>>
>>>> Firebug shows those files being requested from server:
>>>> GET /
>>>> GET /script/custom.js
>>>> GET /script/custom-0.js
>>> Are you running the "source" or "build" version?
>>>
>>> cheers,
>>> Alex
>>>
>>>>> Hi Martin,
>>>>>
>>>>> have you tried to check the Firebug "Network" tab to look if the
>>>>> classes
>>>>> are loaded?
>>>>>
>>>>> Could you try to run "./generate.py distclean" and then "./generate
>>>>> source" to check if everything is working fine. "distclean" removes
>>>>> the
>>>>> cache and cleans up some files.
>>>>>
>>>>> cheers,
>>>>> Alex
>>>>>
>>>>> Martin wrote:
>>>>>> Hello,
>>>>>> yesterday (may be 1 month after last update), I updated qooxdoo from
>>>>>> SVN
>>>>>> and tried to build my project. But there were some errors with
>>>>>> generate.py, so I created new skeleton and I have everything new.
>>>>>> Then
>>>>>> I
>>>>>> copied 2 files from my old project (Application.js + Manager.js) and
>>>>>> built
>>>>>> it. It built OK, but when I tried to load the page, errors like
>>>>>> "qx.html.Label is not constructor" or "qx.ui.layout.Grow is not
>>>>>> constructor" appeared in Firefox Console.
>>>>>> My project is main Application.js, which only creates new instance
>>>>>> of
>>>>>> Manager (defined in Manager.js), Manager extends
>>>>>> qx.ui.container.Composite.
>>>>>> What I found out is, that if I define some variable like
>>>>>> var somename = new qx.ui.layout.Grow(); in Application.js, then
>>>>>> error
>>>>>> is
>>>>>> gone. So I am thinking, than generate.py is not checking classes
>>>>>> which
>>>>>> are
>>>>>> used in Manager.js or something.
>>>>>> I found that there were some changes with URI handling or something,
>>>>>> can
>>>>>> this be some problem?
>>>>>> I checked Application.js + demobrowser.js (application.js also
>>>>>> creates
>>>>>> demobrowser which is extension of .Composite), and I think class
>>>>>> definitions are same as in my project.
>>>>>>
>>>>>> Does anybody know what the real problem could be? Or will I have to
>>>>>> create
>>>>>> variabbles in Application.js for all types I'm using in Manager.js?
>>>>>>
>>>>>> BTW: I tried to run "./genbuild.py migration" and it didn't help.
>>>>>>
>>>>>> Thanks,
>>>>>> Martin
>
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel