jquery and other validation problems [message #95724] |
Thu, 26 March 2009 11:25  |
Eclipse User |
|
|
|
Originally posted by: nomail.nomail.it
PDT all in one latest stable build.
The javascript support in php files or not, report "Cannot be resolved" for
every $.<some> I use.
Opening jquery.js show tons of errors and warnings starting just from the
first 2 lines
// Map over jQuery in case of overwrite
var _jQuery = window.jQuery,
// Map over the $ in case of overwrite
_$ = window.$;
saying for both the same thing: "cannot be resolved or is not a field"... so
if even in the main file say that is obviously impossibile to have $
recognize in my scripts.
Is there a way to have it working line Netbeans PHP does or must I exclude
completely javascript support so I don't see useless errors and warnings
anymore?
|
|
|
Re: jquery and other validation problems [message #95738 is a reply to message #95724] |
Thu, 26 March 2009 11:56  |
Eclipse User |
|
|
|
Originally posted by: nomail.nomail.it
PART OF the problem of validation is also due to the fact that
<script type="text/javascript" src="some.js"></script>
is not sufficient to make the validator see that include (nor I succed
manual specifing in javascript library, source folder, etc. into eclipse
project javascript libraris.)
So, jQuery apart, neither something simple like the below example is
working:
== File a.js
var hiAll='hello';
== file b
<script type="text/javascript" src="a.js"></script>
<script type="text/javascript"
alert(hiAll); //here I got "cannot be resolved"
<script>
Is there a solution?
|
|
|
Powered by
FUDForum. Page generated in 0.02074 seconds