[nbusers] Netbeans 7.1.2 and Jquery

  • From: "whippet" < >
  • To:
  • Subject: [nbusers] Netbeans 7.1.2 and Jquery
  • Date: Wed, 30 May 2012 16:33:09 -0400

I'm attempting to get Jquery to work in netbeans but it isnt working. At 
least according to the instructions here
http://netbeans.org/kb/docs/web/js-toolkits-jquery.html

I noticed the intructions do have errors in them (pointing to different 
jquery versions and the html header). But I cant find anything else on how to 
get this to work.

Under the Web Pages folder I have created a folder js, with a js file called 
jquery-1.4.3.js (and also tried with jquery-1.7.2 with 1.7.2 named folder).

I copy and pasted the contents directly from jquery, development version.

I also have a index.html file with the following.

 <!DOCTYPE html>
 <html>
   <head>
        <title>jQuery Test Project</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="js/jquery-1.4.3.js"></script>

        <script type="text/javascript">
        $(document).ready(function(){
        $("h1").click(function(){
        $(this).addClass("blue");
        });
        });
        </script>
        <style type="text/css">
            .blue { color: blue; }
        </style>
    </head>
    <body>
    <h1>Test.</h1>
    </body>
</html>


When running the project the word test always appears in black font (not blue 
as it should be). But then I dont know jquery syntax so perhaps this could be 
the problem.

there are also some terms underlined as if an error/warning in the .js file, 
but it seems very minor, eg, "function( window, undefined ) {" underfined 
states unused.

I've only just started using netbeans so not sure whether I need something 
else installed first ?






[nbusers] Netbeans 7.1.2 and Jquery

whippet 05/30/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close