Results 1 to 5 of 5

Thread: Accordion Menu & JQuery .19

  1. #1
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Accordion Menu & JQuery .19

    1) Script Title: Glossy Accordion Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...enu-glossy.htm

    3) Describe problem: I've been using this script for a few years now, with out any problems. Today, the menu on one of my sites failed. Trouble shooting, it appears jquery updated to version 1.9, which my site dynamically picked up. The menu failed. The accordion portion of the menu now fails to expand when clicked. Is this something that may be fixed in a future update? I always prefer to use the most current version of any software, jquery included. I will have to go back to 1.8 until this gets fixed unless there is another fix.

    Thanks!
    Rick

  2. #2
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default

    I tried using version 1.9 and it worked fine here http://www.web-user.info/vic/accordion/1.html

    I wonder what else could be going on.

    That script uses the version 1.4.2 of jquery. why did your site pick up a new version? What would make the version from google change if you have one version being used

    I would presume something else changed/was added that is the issue?
    Last edited by ajfmrf; 01-17-2013 at 12:09 AM. Reason: add to post
    Thanks,

    Bud

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    ajfmrf's demo of accordion w/ jQuery 1.9 does work. Perhaps there's some other problem. Or it might be browser specific. Any particular browser you're having a problem with?

    If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I use this tag in my pages:
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    It picks up the most current version of jQuery from version 1.#.
    Getting the same results in IE and FF. Dropping jquery back to 1.8 seems to fix the problem.

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yes. And that's one way of dealing with the problem. Another would probably be to use migrate (addition highlighted):

    Code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    <script src="http://code.jquery.com/jquery-migrate-1.0.0.js" type="text/javascript"></script>
    It brings back functionalities to jQuery that have been dropped. A benefit with this approach is that if you use a browser with console logging, it will log which dropped features are being used. That way one can update the code that uses the dropped feature(s).

    I say only 'probably' though because if the main reason is something beside dropped functionality, migrate might not fix the problem and any logging it might do could be misleading.

    But again, clearly the script works with jQuery 1.9, so there must be some other problem. Now of course jq 1.9 is involved, but there must be something else as well on your page, otherwise ajfmrf's demo wouldn't work.

    Sometimes a newer version of jQuery uses a stricter syntax than an earlier version. I've seen this happen before. Where an earlier version might ignore excessive quotes used in a selector, a later version will not, resulting in that selector not working as expected.

    Again though, it has to be more than just that, since ajfmrf's demo works. It does work in both those browsers (IE and Firefox).

    Here's the link again if you missed it:

    http://www.web-user.info/vic/accordion/1.html

    Nice work Bud.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. jQuery Accordion Menu
    By jickpictures in forum JavaScript
    Replies: 2
    Last Post: 10-26-2010, 07:47 PM
  2. another jquery version on Accordion Menu Script
    By Byterider in forum Dynamic Drive scripts help
    Replies: 7
    Last Post: 07-23-2010, 02:07 PM
  3. Collapsing Accordion Jquery Menu
    By propoo in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 06-04-2010, 05:38 PM
  4. Accordion Jquery Menu
    By jude86_7 in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 10-29-2009, 01:48 PM
  5. Accordion Menu script and jQuery 1.1
    By FireWolf in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 03-06-2008, 09:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •