Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Trying to spec. JS library, but use XDR to load from CDN
Trying to spec. JS library, but use XDR to load from CDN [message #219477] Wed, 20 August 2008 17:29
Eclipse UserFriend
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).
Previous Topic:Turning off validation
Next Topic:org.eclipse.wst.wsdl.util.WSDLParser status
Goto Forum:
  


Current Time: Wed Jul 02 19:59:19 EDT 2025

Powered by FUDForum. Page generated in 0.04078 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top