Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (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 MoserFriend
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 DahyabhaiFriend
Messages: 4435
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 Web Tools Platform
Previous Topic:Content Assist exstension in JSP editor
Next Topic:No repository found at http://download.eclipse.org/webtools/updates
Goto Forum:
  


Current Time: Thu Apr 25 21:53:21 GMT 2024

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

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

Back to the top