Link to home
Start Free TrialLog in
Avatar of Brian Sowter
Brian Sowter

asked on

Cany find the bug in my Slimmenu / JQuery code

I am modifying my site to change the Spry menu bar because it does not work with tablets touch screens.

i have made a test page using SlimMenu which I downloaded from http://adnantopal.github.io/slimmenu/

It looks as though the JQuery is not working.  In the instructions at the link above it mentions :
"Add jquery.slimmenu.js after jQuery plugin and before closing body tag."  I dont know what a jQuery plugin is.  Maybe this is the problem.  There is also an error message displayed:
$('#navigation').slimmenu( { resizeWidth: '800', collapserTitle: 'Main Menu', animSpeed: 'medium', easingEffect: null, indentChildren: false, childrenIndenter: ' ' })

Help will be much appreciated.

You can view the page at:  www.sowter.co.uk/ix4.php
ix4.php
Avatar of Duy Pham
Duy Pham
Flag of Viet Nam image

jQuery is simply an advanced javascript library. You can download jQuery from here: http://jquery.com/download/ and add jQuery js file to your project page (like slimmenu.js).
Or you can directly link to jQuery library using Google CDN: https://developers.google.com/speed/libraries/.
Avatar of Brian Sowter
Brian Sowter

ASKER

Hi  Dui
I downloaded jquery.js and put it in a folder called slimmenu.  I also put in a two script lines;  

<script src="slimmenu/jquery.js"></script>
<script src="slimmenu/jquery.slimmenu.js"></script>

 I still get the problem that the menu is in uncolapsed form though the links do work.  I also get an error message at the very bottom of the page
$('#navigation').slimmenu( { resizeWidth: '800', collapserTitle: 'Main Menu', animSpeed: 'medium', easingEffect: null, indentChildren: false, childrenIndenter: ' ' });

I must be close but I stil cant find the problem.  The link to the offending page is www.sowter.co.uk/ix4.php

Please help!
ASKER CERTIFIED SOLUTION
Avatar of Duy Pham
Duy Pham
Flag of Viet Nam image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I am a 75 year old guy and I would never have fixed this problem without this help.  It is really encouraging for me.
Thanks again
You're welcome :). And actually you (and one of my 70-year-old colleagues) are encouraging me in continuous learning.

Best regards,
Duy.