osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Dhtml category menu not working correctly

This is a discussion on Dhtml category menu not working correctly within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hey Everyone, My Dhtml category menu doesn't work if I have too many categories. I'm not sure what the cutoff ...

      
  1. #1
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default Dhtml category menu not working correctly

    Hey Everyone,

    My Dhtml category menu doesn't work if I have too many categories. I'm not sure what the cutoff is but it will work if I only have 8, but lot in the low teens. I have seen sites using this with 24 categories. Every thing works fine with the normal catefory but I really want to use the dhtml menu.

    Does anyone have any ideas of how I can fix this?

    Thanks,
    John

  2. #2
    New Member
    Join Date
    Jul 2004
    Location
    a mountaintop in Florida
    Posts
    22
    Rep Power
    0


    Default

    Can you post a link so we can observe the problem?

  3. #3
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default

    Sure, it's

    http://jwisdom.driedflowersrus.com/catalog/

    I'll set it to dhtml and thanks for you help.
    John

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    John, you are getting a javascript error:

    Line 32
    Char 2
    Error 'StartTop' is undefined
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default

    Msasek,

    That is the defualt script I got. I haven't changed it.

    That is why I am lost on this.

    Check the same version I have and when you run up the categories it doesn't work. It will work when I beat the categories down though.

    Let me know what you find but I haven't altered that script.
    John

  6. #6
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default

    Okay, I was wrong. Somehow mine was changed on that line from original, but I have corrected that and it still doesn't work. It probably got changed because 'java console" has been pointing to an error there. But, it still doesn't work.

    I still have a fair amount of time before I need to open this, but I'm out of guesses with this one.

    Let me know. It does work with 8 categories.
    John

  7. #7
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    John, it is related to something you have done, as I just tested this on the same default codebase that you are using and it works correctly.

    See the screenshot. I do not get the same error.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  8. #8
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Found your problem

    John,

    Your problem is that you are using special characters (double quotes) in your descriptions. You need to escape them or they will cause the error (put a \ in front of them).

    I did it for you, and you can see it working correctly.

    It is important to remember that any time you use quotes, you may get unexpected results if you do not properly esacape them (since just about EVERY programming language on the planet uses quotes as a delimiter of some sort or another. )

    You need to tell javascript not to treat it specially. That is why you need to escape them...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  9. #9
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default

    Thanks Msasek,

    I never even thought about that. I had it set up that way on my live site but it wasn't using Java. That is why when I started widdling the categories down it worked. Because I had taken the ones with that out.

    I knew you would have the answer!
    John

  10. #10
    New Member
    Join Date
    Nov 2004
    Location
    CA
    Posts
    5
    Rep Power
    0


    Default

    Wait a second! Even if you add your products through the Admin control panel and use double quotes, you need to ESCAPE every single quote to get the dhtml menu to display correctly? So I need to tell my client to escape all his quotes in the Product Name? What about the Product Descriptions?

    http://www.bulletindustries.com/catalog/index.php

    P.S. if you read this msasek, Thanks for OSCMAX

Page 1 of 2 12 LastLast

Similar Threads

  1. Dhtml Menu does not display.
    By Walter in forum osCMax v2 Features Discussion
    Replies: 8
    Last Post: 02-21-2007, 08:09 AM
  2. HOw to activate the DHTML Menu
    By Walter in forum osCMax v2 Features Discussion
    Replies: 0
    Last Post: 11-05-2006, 02:47 PM
  3. dhtml menu
    By kjh in forum osCMax v1.7 General Mods Discussion
    Replies: 2
    Last Post: 08-01-2005, 05:26 AM
  4. dHTML menu editing
    By Klusmakelaar in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 06-30-2005, 05:22 PM
  5. Links not working correctly
    By ianmac in forum osCommerce 2.2 Installation Help
    Replies: 3
    Last Post: 11-16-2004, 03:34 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
  •