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?
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