Language suggestion needed for project.

Posted on 2004-09-03
Last Modified: 2010-04-06
Ok here is my delimma. I have a website that is for a college orginazation and I was wanting to do member bios. Well there are about 50 members who are constantly changing and I dont want to code everything by hand and have to redo it all again next semester. So I know what you are thinking now, just use some sort of database and asp or php. Well, the college server where the info is hosted doesnt support asp php or cgi scripts. So does anyone have any suggestions for what I can do. I would like the info to be easily added to or changed if at all possible, as I will not be the webmaster forever. I do have quite a bit of html, java, C and PHP knowledge, and can pick up other languages quickly if you have a suggestion. I am also looking for a message board I could run on this site. Thanks for your help.

Here is a link to the page.  If you click on Matt McFadden you get a popup window.  It is that kind of info that I would like to be able to dynamicly pull somehow and not have it all hardcoded.
Question by:nikerw
  • 2
  • 2
LVL 15

Expert Comment

ID: 11976970
<<doesnt support asp php or cgi scripts>>
Does it support any serverside language?
Perhaps the best you could do is use SSI's in .shtml pages.
You could change the extension of main page to .shtml and include a file for each person.  Each included file would have the persons image and the javascript to open the correct html page in the new window.  Create templates for the include file and the "detail" file for the popup window and it would be easy to add person.  Removing a person would be as simple as taking the include out of the main page.

Author Comment

ID: 11977367
I did a little test and it does support ssi's, but I think you are trying to rebuild the wrong page on my site.  I don't really want to rebuild the main page.  I want to do the "detail" page or bio popup page as you put it.  Is there any way to design one page like that with ssi or any other language my server supports that would be able to display the info of whatever person was clicked on (like by passing a variable)?
LVL 15

Accepted Solution

VincentPuglia earned 250 total points
ID: 11977498

  You could maintain the 'database' in excel or a text editor, output it to a *.js file, and then include that to the main page (<script type='text/javascript' src='bios.js'></script>)

  the 'database' should look like the following:
  var memName = new Array("Matt McFadden","somebody", "someone else"....)
  var memImg = new Array("someFileName.jpg",......)
  var memBio = new Array();
  memBio[0] = "Matt has been the driving force of the fraternity since its inception...blah...blah...blah";
  memBio[1] = .......

Then within the main page simply create the page from the arrays:

  var txt= '<img src=' + memImg[num] + </img>'
  var txt+= '<br>Name: ' + memName[num] + '<br>';
  var txt += memBio[num]
  var popup =

where 'num' is passed when clicking on the original image.

Deleting & adding members will only involve consecutively changing the memBio cell numbers


Author Comment

ID: 11978458
I awarded the points to Vincent, but would also like to know if there is any easy way to "output it to a *.js file" from excel?
LVL 15

Expert Comment

ID: 11978493

  Been a while since I've played with Excel, but did you check 'Save As'?  If I remember right, you should be able to rename the file extension from *.txt to *.js.   If not, you might check printing the worksheet to a file (like a straight report).  [worse gets to worst, check with the Excel 'experts']


Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem to run file 9 126
File names with & character 6 81
jQuery Date picker not working 16 177
Adding a hidden div to each row in a table 6 86
There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question