Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » dojo and JavaScript validation?
dojo and JavaScript validation? [message #528914] Thu, 22 April 2010 11:42 Go to next message
Michael Moser is currently offline Michael Moser
Messages: 914
Registered: July 2009
Senior Member
Is there some faint hope to have dojo and the JavaScript validator to
co-exist?

Today - when I enable JS validation, it already fails the very first time I
call any dojo method, so it's useless for any code using any dojo libraries.

------------------------
<script type="text/javascript" src="../../dojo/dojo.js"></script>
<script>
...
dojo.require("dojo.parser"); <== error: dojo can not be resolved...
...
<tons of error msg. here...>
------------------------

Is there some way or option to get this working? Or at least have the
validator ignore those calls?

Michael
Re: dojo and JavaScript validation? [message #529946 is a reply to message #528914] Tue, 27 April 2010 19:11 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2274
Registered: July 2009
Senior Member
On 4/22/2010 7:42 AM, Michael Moser wrote:
> Is there some faint hope to have dojo and the JavaScript validator to
> co-exist?
>
> Today - when I enable JS validation, it already fails the very first
> time I call any dojo method, so it's useless for any code using any dojo
> libraries.
>
> ------------------------
> <script type="text/javascript" src="../../dojo/dojo.js"></script>
> <script>
> ...
> dojo.require("dojo.parser"); <== error: dojo can not be resolved...
> ...
> <tons of error msg. here...>
> ------------------------
>
> Is there some way or option to get this working? Or at least have the
> validator ignore those calls?

You can disable some or all of the semantic validation from the
JavaScript Errors/Warnings preference page, but I do not see that
message with Galileo SR2. Which version are you using?

--
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Content Assist exstension in JSP editor
Next Topic:No repository found at http://download.eclipse.org/webtools/updates
Goto Forum:
  


Current Time: Sun Sep 21 02:07:38 GMT 2014

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

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