Link to home
Create AccountLog in
Avatar of Richard Korts
Richard KortsFlag for United States of America

asked on

Web Menu Issues

Please look at tchristy.net

Note on the left, there is a menu structure & on the right broad product groups.

Choose one of the Product groups between Sealants, Lubricants & Epoxies & Waterworks (inclusive). Note as you click on a product group, the menu expands for that group & lists what we call categories. Note that the right (page body) does the same. Click a category; the subcategories expand out in the menu & on the page body. This all works good.

Now look at the last two groups (Copper Fittings & Plumbing). These do NOT work properly.

The question is, does anyone know of a generic web menu system that I could acquire that I could use to replace this? I have a lot of web development experience & I have spent perhaps 8 hours trying to debug the issue, unsuccessfully.

Of course the menu system has to be able to be tied into the display on the page body so the two are sync.

Thanks
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

What browser, because it looks like it is working correctly for me.  Any chance you have an old version of something in cache?

Cd&
Avatar of Richard Korts

ASKER

COBOLdinosaur

I'm using FireFox. I didn;t check it in IE (this time) but I did previously; same issues.
COBOLdinosaur

The behavior that is a problem is described more specifically as follows.

Click on Copper Fittings on the lower right. The correct categories display in the menu & on the page body. Click any category. The correct subcategories show in the left menu & in the page body. Click on of the subcategories in the page body, The correct product list in the selected subcategory shows in the page body. The left menu switches to Plumbing with the 3 categories.

Start over. Select Plumbing. The correct categories show on the left menu & in the page body.

Click any category in the left menu. Nothing happens. Click any category in the page body. The correct subcategories show in BOTH the left menu & the page body. Click on any subcategory. The correct product list in the selected subcategory shows in the page body. On the left menu, everything disappears (as if NOTHING had been selected).

It seems like ALL the product groups down through Waterworks function correctly. The last two (Plumbing & Copper Fittings) do not.
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Can you give me an example of a duplicate id generation?

Thanks
When two elements in the page have the same value for the id attribute it is invalid.  There is no way for the browser to resolve the ambiguity and the Document Object cannot be used to reference the elements.  The results are unpredictable and the page is not going to execute scripting correctly.

It is like putting the same address on every house in a small town.  How do you deliver mail, dispatch the fire department or find any particular instance of the address?

Cd&
OK, the id element names are generated by php. I will have to try to do something to make them unique.

Thanks