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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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
| |||
| |||
| Can you post a link so we can observe the problem? |
|
#3
| |||
| |||
| Sure, it's http://jwisdom.driedflowersrus.com/catalog/ I'll set it to dhtml and thanks for you help.
__________________ John |
|
#4
| ||||
| ||||
| John, you are getting a javascript error: Line 32 Char 2 Error 'StartTop' is undefined
__________________ Michael Sasek osCMax Developer
|
|
#5
| |||
| |||
| 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
| |||
| |||
| 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
| ||||
| ||||
| 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
|
|
#8
| ||||
| ||||
| 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
|
|
#9
| |||
| |||
| 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
| |||
| |||
| 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 |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dhtml Menu does not display. | Walter | osCMax v2 Features Discussion | 8 | 02-21-2007 09:09 AM |
| HOw to activate the DHTML Menu | Walter | osCMax v2 Features Discussion | 0 | 11-05-2006 03:47 PM |
| dhtml menu | kjh | osCMax v1.7 General Mods Discussion | 2 | 08-01-2005 05:26 AM |
| dHTML menu editing | Klusmakelaar | osCMax v1.7 Discussion | 1 | 06-30-2005 05:22 PM |
| Links not working correctly | ianmac | osCommerce 2.2 Installation Help | 3 | 11-16-2004 04:34 AM |