No, that's a perfectly fine way to do it. The script will be parsed and evaluated synchronously so there should be no timing issues if you include it before your qx app script in the <head> element.
The main advantage to using the resource approach is that it helps keep your qx application self-contained. Regards, Daniel On 12.04.2013 10:12, Jeroen Smit wrote: > Hi Daniel. > > Thanks for your response. > I just managed to get it working using the ASP.NET main page I have where I > ibncluded the script. > After that I can just use window.Kinetic... in my Qx app. > Or am I just lucky and should I change it to your solution? > > Best regards, > Jeroen > > -----Original Message----- > From: Daniel Wagner [mailto:[email protected]] > Sent: Friday, April 12, 2013 9:41 AM > To: [email protected] > Subject: Re: [qooxdoo-devel] Using Kinetic icw Qooxdoo > > Hi Jeroen, > > you can easily integrate external scripts using qooxdoo's resource system. > Just copy the minified kinetic script to your resource folder and add an > #asset hint to your application. Then after re-generating your app, you can > load it like this: > > var url = > qx.util.ResourceManager.getInstance().toUri("myapp/kinetic-v4.4.1.min.js"); > var req = new qx.bom.request.Script(); > req.onload = function() { > // Global Kinetic object is ready to use }; > > req.open("GET", url); > req.send(); > > > Regards, > Daniel > > On 10.04.2013 17:16, Jeroen Smit wrote: >> Hi, >> >> I am currently looking into some Html5 development and I am wondering >> if it is possible to use Kinetic (http://kineticjs.com/ >> kinetic-v4.4.1.js) within an application built with Qooxdoo. >> >> So far I haven't been able to get it compiling sucessfully but I'd >> rather not change the structure of the Kinetic sources to comply to >> the Qx-class definitions. >> >> I hope someone can help me with this. >> >> Thanks in advance >> >> Best regards, >> >> Jeroen >> >> >> >> ---------------------------------------------------------------------- >> -------- Precog is a next-generation analytics platform capable of >> advanced analytics on semi-structured data. The platform includes APIs >> for building apps and a phenomenal toolset for data science. >> Developers can use our toolset for easy data analysis & visualization. >> Get a free account! >> http://www2.precog.com/precogplatform/slashdotnewsletter >> >> >> >> _______________________________________________ >> qooxdoo-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced analytics > on semi-structured data. The platform includes APIs for building apps and a > phenomenal toolset for data science. Developers can use our toolset for easy > data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
