Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » jquery and other validation problems
jquery and other validation problems [message #95724] Thu, 26 March 2009 07:25 Go to next message
Eclipse UserFriend
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 07:56 Go to previous message
Eclipse UserFriend
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?
Previous Topic:Selection Job Title Error
Next Topic:[Announce] PDT 2.0.1 M200902050834 is available
Goto Forum:
  


Current Time: Mon Mar 17 05:32:55 EDT 2025

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

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

Back to the top