...

View Full Version : This array won't print, help!



needMajorHelp
12-08-2008, 10:40 PM
I have a .js file with the arrays and an html file for the web page. The arrays won't print. The idea is to have a check box with the statement next to it. I save the statements as arrays because the same statement might be used by many different pages.

In the javascript file:
//Conditions
var condition= new Array();
condition[0]="certain RADIO-ACTIVE RELEASE/HAZARD";
condition[1]="certain BIOLOGICAL RELEASE / HAZARD";
condition[2]="certain CHEMICAL OR SOLVENT HAZARD";
condition[3] "certain TOXIC FUMES RELEASE/HAZARD";
condition[4]="Personal injury, illness, or exposure";
condition[5]="Multiple injuries, illnesses, or exposures";
condition[6]="Experience irritation, coughing, burning eyes, difficulty breathing";

//Security and Evacuation
var security=new Array();
security[0]= "Evacuate Immediate Vicinity";
security[1]= "Evacuate Building";
security[2]= "Evacuate Campus";
security[3]= "Secure the immediate area";
security[4]= "Secure the zone";
security[5]= "Limit access to authorized personnel";
security[6]= "Do not re-enter the area until advised by emergency personnel";


In the html file:

<html>
<head>
<script type="text/javascript" src="list.js"></script>
</head>
<body>
<script type="text/javascript">
document.write("<h1>Hazardous Material Response</h1>");
document.write("<table>");
document.write("<tr>");
document.write("<td>");
document.write("<input type=\"checkbox\" name=\"condition\" id=\"c1\">");
document.write(condition[1]);
document.write("</td>");
document.write("<td>");
document.write("</tr>");
document.write("</table>");
</script>
</body>
</html>

rangana
12-09-2008, 03:40 AM
var condition= new Array();
condition[0]="certain RADIO-ACTIVE RELEASE/HAZARD";
condition[1]="certain BIOLOGICAL RELEASE / HAZARD";
condition[2]="certain CHEMICAL OR SOLVENT HAZARD";
condition[3]="certain TOXIC FUMES RELEASE/HAZARD";
condition[4]="Personal injury, illness, or exposure";
condition[5]="Multiple injuries, illnesses, or exposures";
condition[6]="Experience irritation, coughing, burning eyes, difficulty breathing";

needMajorHelp
12-09-2008, 05:41 AM
is that the only reason why it won't print?

:eek:

oye..

thankyou!

:o



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum