Click to See Complete Forum and Search --> : Listbox that reads off system.
burningice
11-06-2003, 04:13 PM
Ok. I've got a problem, that I'm not really sure how to solve. My boss has given me the following task - it will be used on the company's webpage.
Anyways, I'm using a listbox to show archives of weekly memos at the office. The archive will list a series of dates such as '2003-10-18', and when that date is chosen, the memo at that time will come up on the screen.
Each archived memo is in a directory with the same name. All the dates (in directory form) are in the same main directory on the network.
I need a way to fill the listbox with the names of these directories, when the web page is loaded. Any ideas?
I've been told Javascript won't work for this. Is there anything that can do this, or should I just instead archive the data using an Access DB_? And if so, what would be the best way to tackle that?
Thanks in advance.
Khalid Ali
11-06-2003, 04:15 PM
better coice will be server side scripting,
however if you must then you can use
XML file.
write all the directories names in the XML file and use in the browser
PeOfEo
11-06-2003, 04:36 PM
What you can also do Is log the dates in an access data base like you said before instead of using an xml data base. Then use a server side language like kalid mentiond to read this data base and populate list box with the dates. One thing that would avoid future problems and inconveiniances is if all of the memos were in this data base too and you had a page selecting the individual memo from the data base and putting it on the page rather then having them all as their own html file. Just a suggestion though.
burningice
11-06-2003, 06:30 PM
I'm pretty new to server side programming. Could you give me the name of a good server side language to use, so I can research up on it?
Sux0rZh@jc0rz
11-06-2003, 06:46 PM
"researching" will take a long time. you'd probly have more luck asking one of them to give u ServerSideLanguage and then give u code for it and then explain it to you.
burningice
11-06-2003, 06:55 PM
Perhaps. But in the long run, I'll learn more than to just copy some code. I have no set deadline for this. It's something my boss wants done, but there is no timetable. I have other projects to work on in the mean time.
Originally posted by Sux0rZh@jc0rz
"researching" will take a long time. you'd probly have more luck asking one of them to give u ServerSideLanguage and then give u code for it and then explain it to you.
I'm sure most of use who give code on this board are here merly to help out where we can. That does not mean we want to, or will, write code for people because they are to lazy to learn themselves.
I personally use and highly recommend PHP. With PHP, one would be most likely to use a MySQL database, though. If you would like to continue using M$ products (but why? ;)), I would look into ASP or ASP.NET.
burningice
11-06-2003, 07:02 PM
Thanks pyro, that's what I was looking for. This gives me a direction to work in, which is good. Thanks.
PeOfEo
11-06-2003, 07:16 PM
burningice, what does your server support visa vi server side technologies first of all. Did you check their faq? What os are the servers? If you do not want to change hosts you should figure out what they support before you jump into a language so you can add what they support in as a factor when you go to make a choice on which technology to use. Like me, I picked up asp.net because my host was on a microsoft server for starters and they supported asp and asp.net, when I read up on asp and asp.net I decided that asp.net was better. Another reason I chose asp.net though is because it uses plain visual basic (not vbscript like asp) and I had two years of experience at that time already.