Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Language suggestion needed for project.

Posted on 2004-09-03
5
Medium Priority
?
200 Views
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 http://www.ksu.edu/thetaxi/brothers/03composite.html 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.
0
Comment
Question by:nikerw
  • 2
  • 2
5 Comments
 
LVL 15

Expert Comment

by:joeposter649
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.  http://bignosebird.com/ssi.shtml
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.
0
 

Author Comment

by:nikerw
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)?
0
 
LVL 15

Accepted Solution

by:
VincentPuglia earned 750 total points
ID: 11977498
Hi,

  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 =  window.open(.....)
  popup.document.write(txt)

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

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

Vinny
0
 

Author Comment

by:nikerw
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?
0
 
LVL 15

Expert Comment

by:VincentPuglia
ID: 11978493
Hi,

  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']

Vinny
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

972 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