Hi Andreas

I found out what the problem was. I was being dim.

I was adding qx.js as a script tag within the xul overlay which is the
starting point of an extension; I was just following the example extension
blindly.

This would never work because when loading the xul overlay there is no
document so not unreasonably qooxdoo would not work. Looking at the source
version makes it obvious - the qx.js is full of document.write(script tag
...) but there is no document when firefox is starting up loading
extensions.

Loading the qx.js in a normal html page from within the extension (e.g. from
a button on the tool bar) works fine.

James


Andreas Ecker-2 wrote:
> 
> Hi, James,
> 
> I would suggest you start with a smaller qx.js (or even a non-qooxdoo JS
> in case you haven't tried yet).
> 
> You seem to know how to generate a "source" or "build" version of
> qooxdoo? Please make sure you have read the following docs for
> generating (custom) builds:
> http://qooxdoo.org/documentation/user_manual/generating_from_source
> http://qooxdoo.org/documentation/user_manual/custom_builds
> 
> The framework/source/script/qx.js simply is an "includer script"
> generated by a "make source" command. You could start including the
> single qooxdoo class files (in the order given by this includer script)
> into your firefox extension. Maybe you run into problems for the very
> first files, or you reach a limit in the extension mechanism after a
> large number of files...
> 
> Please let us know if this gets you any further. May the Source be with
> you! ;-)
> 
> Andreas
> 
> 
> jamescowan wrote:
>> 
>> any chance that one of the qooxdoo gurus could take a look. Below is a
>> link
>> to the standard helloworld firefox extension (helloworld.xpi) - if you
>> install this in firefox, it hangs firefox; if you delete line 7 of
>> content/overlay.xul ( <script src="qx.js"/>) and reinstall the extension
>> it
>> works fine. To remove the extension with qx.js - you have to start
>> firefox
>> in safe mode.
>> 
>> http://www.nabble.com/file/346/helloworld.xpi helloworld.xpi 
>> 
>> jamescowan wrote:
>> 
>>>
>>>James
>>>
>>>------------------------------------------------------------------------------------------------------
>>>I am thinking of using qooxdoo rather than xul to build the ui in a
>>>firefox extension.
>>>
>>>If I add the standard qx.js to the standard helloworld extension, firefox
>>>cannot handle it - it just hangs. I have fiddled with generating the
qx.js
>>>with --add-new-lines but I cannot find a simple way around it. I suspect
>>>that the large array at the beginning of qx.js is causing the problem.
>>>
>>>I guess including the separate source modules might be the answer but I
>>>get the feeling that this would be a very error prone approach.
>>>
>>>Is there a simple solution to the problem anyone can think of?
> 
> 
> 
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://www.nabble.com/qooxdoo-and-firefox-extension-tf2395071.html#a6918636
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to