jquery doesn't seem working on netbeans 8.0.2
. div pictures supposed sliding either doesn't show, or , without pictures. when run same code notepad, runs without issues.
here sample of code java versions : jsf 2.2
and jdk 1.0.8_25
. using glassfish server 4.1
<link rel="stylesheet" href="flexslider.css" type="text/css" media="screen" /> <script src="jquery-2.0.3.js"></script> <script src="jquery.flexslider.js"></script> <script type="text/javascript"> $(document).ready(function () { $('.flexslider').flexslider({ animation: "slide" }); }); </script> <body> <div class="flexslider" style="background-position: center center; width: auto; height: 250px; position: relative; background-color: #304179; text-align: center;"> <ul class="slides"> <li><img src="igbo.jpg" width="150px" height="250px" /></li> <li><img src="guy.jpg" width="350px" height="250px" /></li> <li><img src="bule.jpg" width="350px" height="250px" /></li> <li><img src="guy.jpg" width="350px" height="250px" /></li> </ul> </div> </body>
so figured out. have tell webpage want use jquery , should it. can either put latest jquery file in on server or link it. here how did it:
<script type="text/javascript" src="jquery-1.9.1.min.js"></script> <script type="text/javascript" src="script.js"></script>
i downloaded jquery http://jquery.com/download/ edit path file correct, , should work :) mine did!
it works directly web putting link, so:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script type="text/javascript" src="script.js"></script>
hope helps.
source: codecademy