Archive for the ‘js-ext’ Tag
I’m documenting my experiences using the Eclipse JSDT.
My initial attempt to add a 3rd party library had mixed results. My goal was to get some content assist working. I was to add mooTools but not jQuery. However, I also found my approach failed when I wanted to get the mooTools library loaded when running the app.
So, this does not work:
And when you try and run the example, you will notice either errors in your HTML debugging that states that the mootools libraries cannot be found, or the example will just not work properly.
A side track for a second.
I’m running an example from the wrox Professional Java Script Frameworks book, a good introduction to Prototype, YUI, Ext JS, Dojo and MooTools. The code samples can be downloaded here. Unzip the mooTools zip file, and locate code/mootools/mootools-animation-ui.
The example contains ui.js and ui.html, and they use 2 mooTools libraries.
- mooTools more, which is a script that is built by selecting various components. I chose all the options except the non-English options, and chose no compression to create a mootools-220.127.116.11-more.js.
Solution: Add to Web Context
Now when I run the ui.html example, I am able to see the nice graphical effects that mooTools provides:
But, another exception
I was rewarded with this NPE exception dialog when I dragged the mooTools libraries from my File Explorer into the Web Context. Filed this bug.