Adding Members to the Music People Database: Javascript Code Generator

Copyright © 2004 Jeff Nguyen

Use this form to add members to the faculty database (db-faculty.js) or to the staff database (db-staff.js). Both files reside in the JS folder. To add person(s) to the database, enter the minimum amount of info required to generate the necessary code (displayed the codebox below), which you will paste directly into ../JS/faculty.js. This database services both the alphabetical faculty listing (facultyAlpha.html) and the listing by department (faculty.html). The program already has functions to sort faculty by alphabet and by area of expertise. Paste the code anywhere between the two marquees. And any insertions or deletions you make should affect both types of faculty listings.

ADD PEOPLE
*Name
*first   [middle] *last

*Area

*Offical Title (e.g. Assistant Professor)

Contact Information
email
phone
office

Bio


Image:

Store faculty images in the "../People/pplPics/faculty" directory.
Store staff images in the "../People/pplPics/staff/" directory.

Using the button features below, link to your image file via the drag-and-drop method. Browser Specific Instructions and button descriptions here.




crop image to
a 108 px square jpg or gif.
Personal Homepage/Website:

CODE BOX

Each Faculty Profile entry or declaration has the form:

faculty[faculty.length++] = new Profile("first middle", "lastname", "area (of expertise)", "photo.jpg", "title",
		           "email", "phone", "office", "website",
		           "bio");