Solved

Language suggestion needed for project.

Posted on 2004-09-03
5
191 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
Comment Utility
<<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
Comment Utility
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 250 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

728 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now