Trying to spec. JS library, but use XDR to load from CDN [message #219477] |
Wed, 20 August 2008 17:29 |
Eclipse User |
|
|
|
I want the JavaScript editor to show compile errors and help me with code
assist. This works for simple things, but I'm using a third-party
JavaScript library loaded using cross-domain scripting, to get it from a
content-delivery network.
I thought I could get this to work by simply copying in the library
distribution into a directory in my project (not under WebContent), and
specifying that directory as a JavaScript library in the project.
I've tried doing this with two sample projects, one using the Yahoo UI
library, and one using Dojo. With the YUI-using project, at least it
doesn't complain about unknown objects, but it doesn't do much for
completion. When I did this with the Dojo-using project, it just says
"dojo cannot be resolved". However, the page loads and executes fine in
the browser (I used Firebug to verify my log message arrived successfully).
|
|
|
Powered by
FUDForum. Page generated in 0.04078 seconds