Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Changes to category listings -- Javascript??

Quote Reply
Changes to category listings -- Javascript??
Has anyone thought about (and I'm including GT) creating one of those java-script select boxes that have become so popular for category navigation?

Most go only 3 levels deep, but 4 levels would not be unreasonable. While some sites probably have deeper levels, it becomes more difficult to navigate those levels (maybe combine everything beyond 3 levels into the 4th box?

I've tried a bit, but I don't have the patience to try to work with javascript and do what I'm trying to get done now. My brain would explode.

I would imagine some of the code used by the browser could be used to do this, since the browser would have to know how to get the various levels of the category tree, to build the tree.

If you are not sure what I'm talking about, check out sites like Ebay (large volumes of categories) or AfterNic (much smaller volumes).

The advantage is that only the top level categories are initially downloaded, then the next levels are grabbed but only by category. These could even be cached so they don't incur database look ups unless the category table has changed.

It would allow easy site navigation for people trying to add, while still giving reasonable download times on huge category lists.

I guess technically this could be a plug-in, but I'd like to see it incorporated into the admin, and really into the whole system as a solution to the "db_gen_category_list" problem.


PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://LinkSQL.com/FAQ


Quote Reply
Re: Changes to category listings -- Javascript?? In reply to
yeah especially useful for adding links (if you don't force being in the correct cat).

I would imagine it would work with flat files, ie during build it creates them, the javascript then loads them depending upon the first value. might look into converting a mod in existance to do this.

http://www.ASciFi.com/ - The Science Fiction Portal
Quote Reply
Re: Changes to category listings -- Javascript?? In reply to
It could read them right from the database.

I just don't have the time to do this. I might release a cute little mod today, as donation ware, just to see how many people actually register things.

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://LinkSQL.com/FAQ


Quote Reply
Re: Changes to category listings -- Javascript?? In reply to
I couldn't see this at ebay, can you post a URL to where I can see it in action?

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Changes to category listings -- Javascript?? In reply to
I believe pugdog is referring to the drop-down menu underneath Browse by Theme.

Regards,

Eliot Lee