Forum Moderators: open

Message Too Old, No Replies

Vertical Menu Ajax script

to page thru long vertical menu items

         

sundaridevi

4:37 pm on Nov 18, 2010 (gmt 0)

10+ Year Member



I'm looking for an AJAX solution to a very long vertical menu that will eventually have about 70 items or more (like a list of products from one category). I only want to display maximum 20 at a time, so i want to show 20 choices, then at the bottom have little, "more" "back" arrows to page thru all the choices.

The only thing I've found is an applet that make the menu scroll.

daveVk

12:02 am on Nov 22, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Rather than use AJAX, put the 1st 20 in div1 and so on. Use the arrow buttons to hide one div and show the next/prior in the series.

Should js be disabled or a bot visit the page all links will be there.

sundaridevi

5:37 am on Dec 7, 2010 (gmt 0)

10+ Year Member



Thanks, I thought about that, but if i have say 20 menu items in div 1 and there are a total of 60, with javascript off, it would look pretty bad. I was thinking about doing it like that and making it somehow default to a scrolling list. I was looking around to see if I could find any sites that do something like this, but I didn't see any.

daveVk

11:53 am on Dec 7, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



with javascript off, it would look pretty bad


Those with js disabled are not likely to be fussy.

If scrolling is really needed.

<div id=removeStyleWithJs style="height: 100px; overflow: auto">
... div1, div2, div3 ...
</div>

Fotiman

3:39 pm on Dec 7, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



but if i have say 20 menu items in div 1 and there are a total of 60, with javascript off, it would look pretty bad.

But it would look even worse if users could not access the remaining items.

sundaridevi

12:08 am on Dec 8, 2010 (gmt 0)

10+ Year Member



@daveVk: yeah i'm looking into the scrolling box for the non-js guys, it will only affect about 5% or less of users I guess.

@Fotiman: yeah the idea is to give the non-js users a workable and elegant solution too.