Internet
Survey Machine Version 4.0 - Reference Manual
|
Step 1 -- Editing site specific links into the StartCreator.html web page
Note: There is also a StartCreatorPlugin.html web page that has be included which is the startup page for the Survey Creator if you are planing to use Microsoft's Internet Explorer or Netscape 3.x or 4.x browser. Be sure to do a global replace of parameters. There are multiple instances of parameter settings for IE and Netscape.
The 1st step is to decide what directories you want to use for the Survey Creator applet, Survey Creator HTML startup page and the optional Survey Creator Startup image and audio. Here is a worksheet:
Survey Said file name Web Server Directory name for fileIn the following applet parameters example, change /www.myserver.com/ and /java/ and /cgi-bin/ to the appropriate values for your environment that you listed on the above worksheet. Note the image and audio tags are optional. These applet tags are found in the StartCreator.html file.
============================ =====================================
StartCreator.html _____________________________________
SurveyCreator.jar _____________________________________
The next four file are optional, but
we recommend an opening screen image
which is defined below as startimage
WelcomeSurveyCreator.jpg _____________________________________
WelcomeSurveyCreator.au _____________________________________
thankyou.gif _____________________________________
closeaudio.au _____________________________________
<applet code="SurveyCreator.SurveyCreatorMain.class"Note: the last param line for web servers running MS-Windows, the sscar cgi needs an exe file extension and should be set to:
archive="http://www.MyWebServer.com/java/SurveyCreator.jar"
width="470" height="80">
<param name=showdebug value="false">
<param name=lookandfeel value="metal">
<param name=windowtitle value="Survey Creator by Advanced Survey Software">
<param name=buttontext value="Start the Survey Creator">
<param name=startimage value="http://www.MyWebServer.com/java/WelcomeSurveyCreator.jpg">
<param name=startaudio value="http://www.MyWebServer.com/java/WelcomeSurveyCreator.au">
<param name=closeimage value="http://www.MyWebServer.com/java/thankyou.gif"> (N/A after Version 2) <param name=closeaudio value="http://www.MyWebServer.com/java/closeaudio.au"> (N/A after Version 2) <param name=surveytalk value="http://www.MyWebServer.com/cgi-bin/sscar?"> </applet>
<param name=surveytalk value="http://www.MyWebServer.com/cgi-bin/sscar.exe?">Once the StartCreator.html file has been edited for your specific directory structure and optional multimedia files, move it to any public accessible area on your website. For optional param definitions, it is recommended that you set a value to "", rather than completely remove it. For example if you do not want to have an startup audio message, set that line to:
<param name=startaudio value="">Step 2 -- Copying the StartCreator.html web page to your web server
Use what ever method you are comfortable with to copy the StartCreator.html page to your web server. This file is simply another web page for your web server to publish. If you use FTP to copy the page, it should be transferred in ASCII mode.
Step 3 -- Copying the cgi programs ssweb, ssvws and sscar to the web server
For web servers running the UNIX (ie, AIX, Solaris, Linux) operating system,
copy the ssweb.c ssvws.c and sscar.c files to the cgi-bin directory that
you will be using to host the cgi programs. Once these file have been transferred
in ASCII mode they must be compiled and linked. This can typically be accomplished
with the cc command or gcc command. If you do not specify an output file,
rename the file a.out after each compile to the appropriate cgi file name.
For example:
>gcc ssweb.c
>mv a.out ssweb
or you can use the mak file supplied for example:
>make ssweb
If you receive an error during compilation that io.h could not be found, simply comment this line out by putting 2 forward slashes in from of the line like this:
// #include <io.h>
For web servers running one of the MS-Windows operating environments, copy the ssweb.exe, ssvws.exe and sscar.exe files to the cgi-bin directory. If using the Microsoft IIS webserver, we recommend using the default scripts directory that is part of IIS's basic directory structure, or a similar directory that is a peer level directory to scripts and preferably NOT a cgi-bin directory that is a sub directory of wwwroot (the html root level directory).
Step 4 -- Creating a sub directory in your cgi-bin directory named surveysaid
Create a sub directory in the cgi-bin directory that contains the ssweb, ssvws and sscar cgi programs. This sub directory must be named surveysaid (all lowercase for case sensitive operating systems like UNIX).
Step 5 -- Setting file protection privileges on the surveysaid sub directory
The surveysaid directory needs to have the following privileges set:
For UNIX operating systems
user = rwx (read, write, execute)
group = none
other = none
the command to set these file privileges is: chmod 700 surveysaid
Step 6 -- Copying the SurveyCreator.jar (binary) file to the web server
Copy the SurveyCreator.jar to the directory specified in the <applet code=... tag specified in Step 1. If you use ftp to put the file in the appropriate directory, be sure to set mode to Binary transfer.
Step 7 -- Using the SurveyCreator to create/modify Administrator's profile
The administrator's profile enables a unique user that has the ability to create other users. This profile does not initially exist. The first time you run the Survey Creator you should create the administrators profile. The administrators profile login name is always surveysaid Note: lowercase required on case sensitive operating systems like UNIX.
To run the Survey Creator you will need a Java 2 capable browser (i.e Netscape 6), or the Java 2 plugin for IE 4.x )or later and Netscape 3.x or 4.x browsers. Using a browser, simply type in the URL to the StartCreator.html page on your webserver. For example, type in:
http://www.MyWebServer.com/java/StartCreator.html
where:
www.MyWebServer.com is the webserver with the StartCreator.html page
on it.
/java/ is the directory on the webserver containing the StartCreator.html
page
If the Survey Creator does not start up almost immediately (on a high speed network) or within a couple of minutes on a dialup connection, check the Java Console for error messages.
When the applet is loaded and running:
To change the Administrator's profile, logon using surveysaid as the User Name and enter the administrator's password. Once logged on, click on the Administrator button in the lower left corner of the program window. You will be prompted again for the administrator's password to gain access to change the administrators profile.
If you ever forget the Administrator's password, you can simply delete the surveysaid.uaf file in the surveysaid directory and follow the steps above. Be sure the administrator's profile (surveysaid.uaf) always exists for security purposes. If it is deleted, anyone could try logging on as surveysaid and gain access to your Survey Said system by creating the administrator's profile.
Important: If you create the administrator's profile, and then try to
logon as the administrator (surveysaid), but get the message:
Administrator profile does not exist
Would you like to create it now?
instead of the Enter password dialog box then there was an error creating
the user's profile! This is most likely a directory protection error being
imposed by the operating system (or possibly in the webserver cgi directory
permissions).
Step 8 -- Using the SurveyCreator to create/modify a user's logon profile
To change a user's profile:
Setting Default Survey Colors |
Setting Default JAVA Parameters |
Setting Default HTML Parameters |