osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 07-29-2004, 10:35 AM
osCMax Testing Team
 
Join Date: Nov 2002
Location: Orlando
Posts: 201
Thanks: 10
Thanked 26 Times in 14 Posts
Rep Power: 7
JohnW will become famous soon enoughJohnW will become famous soon enough
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 07-30-2004, 08:39 AM
New Member
 
Join Date: Jul 2004
Location: a mountaintop in Florida
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gravenimage
Default

Can you post a link so we can observe the problem?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 07-30-2004, 09:54 AM
osCMax Testing Team
 
Join Date: Nov 2002
Location: Orlando
Posts: 201
Thanks: 10
Thanked 26 Times in 14 Posts
Rep Power: 7
JohnW will become famous soon enoughJohnW will become famous soon enough
Default

Sure, it's

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

I'll set it to dhtml and thanks for you help.
__________________
John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 07-30-2004, 03:43 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

John, you are getting a javascript error:

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


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 07-30-2004, 05:37 PM
osCMax Testing Team
 
Join Date: Nov 2002
Location: Orlando
Posts: 201
Thanks: 10
Thanked 26 Times in 14 Posts
Rep Power: 7
JohnW will become famous soon enoughJohnW will become famous soon enough
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 07-30-2004, 05:49 PM
osCMax Testing Team
 
Join Date: Nov 2002
Location: Orlando
Posts: 201
Thanks: 10
Thanked 26 Times in 14 Posts
Rep Power: 7
JohnW will become famous soon enoughJohnW will become famous soon enough
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 07-31-2004, 09:02 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 07-31-2004, 09:14 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 07-31-2004, 10:00 AM
osCMax Testing Team
 
Join Date: Nov 2002
Location: Orlando
Posts: 201
Thanks: 10
Thanked 26 Times in 14 Posts
Rep Power: 7
JohnW will become famous soon enoughJohnW will become famous soon enough
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 11-19-2004, 08:42 AM
New Member
 
Join Date: Nov 2004
Location: CA
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
rocky76
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 02:10 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax