jscroll icon indicating copy to clipboard operation
jscroll copied to clipboard

PHP & MySQLi - can't get it work

Open androidworldbh opened this issue 10 years ago • 4 comments

I think my code is right but i can't get it work don't know why. Here's d code.

 <script src="js/jquery.jscroll.js"></script>
 <script src="js/jquery.jscroll.min.js"></script>

<script type="text/javascript">
$( document ).ready(function() {
 $('.jscroll').jscroll({
 autoTrigger: true
 });
 });
</script>
<div clsss='jscroll'>
<div class='col-md-12 col-xs-12' style='padding:3px;'>
          <p class='z-depth-1'>
          <a href='product_details.php?product_details=$row[ID]/$row[item_name]'>
          <img src='$row[url1]' style='height:auto; width:100%;' draggable='false' />
          </a>
          </p>
          <p class='price' style='color:grey;' align='center'>$row[item_price] BHD</p>

          </div>
          </div>

androidworldbh avatar Aug 06 '15 06:08 androidworldbh

@androidworldbh - You are including the jScroll source twice. You should only have one file, either jquery.jscroll.js or jquery.jscroll.min.js, but not both. jquery.jscroll.min.js is just the minified version of the code.

pklauzinski avatar Aug 09 '15 22:08 pklauzinski

I've removed .min. version , unfortunately same thing - not working

androidworldbh avatar Aug 10 '15 05:08 androidworldbh

I can't really deduce what the problem is from the information given. Do you have an example page to view?

pklauzinski avatar Aug 10 '15 05:08 pklauzinski

not sure if typo here, but your jscroll class has typo: clsss='jscroll' class='jscroll'

tmblog avatar Dec 27 '15 17:12 tmblog