Alphabetic selection

hello-

i'm creating an intranet site for my movies, and have a page for each one. i was wondering if anyone has code for the alphabetical selection of the next html file in the same directory. i.e.- if you're on "8_heads_in_a_duffle_bag.html" and click "NEXT" you go to "10_things_i_hate_about_you.html". right now i've got the page links hardcoded, which is a pain when i add a new page (i have to change the "NEXT" and "LAST" values in the surrounding pages.

i'm just learning html so go easy on me. java's down the road. ;)

thanks

[563 byte] By [acubleya] at [2007-11-26 12:23:10]
# 1
Well, in that case this forum should be down the road for you as well...This is not an HTML forum, and if you're talking about Javascript, you're at the wrong place, too.
CeciNEstPasUnProgrammeura at 2007-7-7 15:22:47 > top of Java-index,Java Essentials,Java Programming...
# 2
You can use Java to list all files in a directory, File.listFiles(). That's gives you an array of File instances. That array can be sorted.Kaj
kajbja at 2007-7-7 15:22:47 > top of Java-index,Java Essentials,Java Programming...
# 3
Little hint, use Dynamic HTML or server page code like JSP,ASP. that's All baby. find your HTML/JAVASCRIPT FOURM. And hope to see you here very very soon with J2SE/J2EE/J2ME/JSP/SERVLET/JTSL /JFC/*......... qustion ;)
Ayman_javaa at 2007-7-7 15:22:47 > top of Java-index,Java Essentials,Java Programming...
# 4

> You can use Java to list all files in a directory,

> File.listFiles(). That's gives you an array of File

> instances. That array can be sorted.

The thing is: I don't see any of the usual keywords like "servlet" or "JSP" or whatever. I have the feeling like the OP wants to search his server using Javascript or something. No idea whether this is possible, but then again, no need to care either.

CeciNEstPasUnProgrammeura at 2007-7-7 15:22:47 > top of Java-index,Java Essentials,Java Programming...
# 5

> > You can use Java to list all files in a directory,

> > File.listFiles(). That's gives you an array of

> File

> > instances. That array can be sorted.

>

> The thing is: I don't see any of the usual keywords

> like "servlet" or "JSP" or whatever. I have the

> feeling like the OP wants to search his server using

> Javascript or something. No idea whether this is

> possible, but then again, no need to care either.

That's why I said that it can be done in Java. :)

He can still use static pages if he just writes a little tool which changes prev/next when he adds a new page.

kajbja at 2007-7-7 15:22:47 > top of Java-index,Java Essentials,Java Programming...
# 6

Even without a server it would be possible to write a program to change the HTML files in order to maintain next and previous links by updating the HREF fields. The sensible thing to do would be to use some kind of text marker to make it easy to find the line or lines with the links on them (use a special HTML comment, perhaps).

And, incidentally, in any natural sort of titles 10 would sort before 8, that's the difference between sorting text and sorting numbers.

malcolmmca at 2007-7-7 15:22:47 > top of Java-index,Java Essentials,Java Programming...