[LON-CAPA-cvs] cvs: rat /client parameter.html
bisitz
bisitz@source.lon-capa.org
Fri, 08 Jan 2010 17:59:57 -0000
This is a MIME encoded message
--bisitz1262973597
Content-Type: text/plain
bisitz Fri Jan 8 17:59:57 2010 EDT
Modified files:
/rat/client parameter.html
Log:
XHTML:
- checked
- Attributes in lower case (onclick, onchange)
- input closure
- Removed double name attributes (2x)
--bisitz1262973597
Content-Type: text/plain
Content-Disposition: attachment; filename="bisitz-20100108175957.txt"
Index: rat/client/parameter.html
diff -u rat/client/parameter.html:1.52 rat/client/parameter.html:1.53
--- rat/client/parameter.html:1.52 Fri Jan 8 17:39:33 2010
+++ rat/client/parameter.html Fri Jan 8 17:59:57 2010
@@ -3,7 +3,7 @@
The LearningOnline Network with CAPA
Parameter Input Window
//
-// $Id: parameter.html,v 1.52 2010/01/08 17:39:33 bisitz Exp $
+// $Id: parameter.html,v 1.53 2010/01/08 17:59:57 bisitz Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -88,8 +88,8 @@
function valline(text,id1,id2) {
choicewrite('<tr><td>'+text+
'</td><td><input type="text" size="4" name="val'+
- id1+'"></td><td>incl:<input type="checkbox" name="val'+
- id2+'"></td></tr>');
+ id1+'" /></td><td>incl:<input type="checkbox" name="val'+
+ id2+'" /></td></tr>');
}
function escapeHTML(text) {
@@ -116,7 +116,7 @@
function hour() {
var thishour=cdate.getHours();
var i; var j;
- choicewrite('<select name="hours" onChange="parent.datecalc();">');
+ choicewrite('<select name="hours" onchange="parent.datecalc();">');
for (i=0;i<=23;i++) {
choicewrite('<option value='+i);
if (i==thishour) {
@@ -140,7 +140,7 @@
function minute() {
var thisminutes=cdate.getMinutes();
var i;
- choicewrite('<select name="minutes" onChange="parent.datecalc();">');
+ choicewrite('<select name="minutes" onchange="parent.datecalc();">');
for (i=0;i<=59;i++) {
choicewrite('<option value='+i);
if (i==thisminutes) {
@@ -154,7 +154,7 @@
function second() {
var thisseconds=cdate.getSeconds();
var i;
- choicewrite('<select name="seconds" onChange="parent.datecalc();">');
+ choicewrite('<select name="seconds" onchange="parent.datecalc();">');
for (i=0;i<=59;i++) {
choicewrite('<option value='+i);
if (i==thisseconds) {
@@ -169,7 +169,7 @@
function date() {
var thisdate=cdate.getDate();
var i;
- choicewrite('<select name="date" onChange="parent.datecalc();">');
+ choicewrite('<select name="date" onchange="parent.datecalc();">');
for (i=1;i<=31;i++) {
choicewrite('<option value='+i);
if (i==thisdate) {
@@ -190,7 +190,7 @@
if (thisyear>nowyear) { loweryear=nowyear-2; }
if (thisyear<nowyear) { upperyear=nowyear+5; }
var i;
- choicewrite('<select name="year" onChange="parent.datecalc();">');
+ choicewrite('<select name="year" onchange="parent.datecalc();">');
for (i=loweryear;i<=upperyear;i++) {
choicewrite('<option value='+i);
if (i==thisyear) {
@@ -204,7 +204,7 @@
function month() {
var thismonth=cdate.getMonth();
var i;
- choicewrite('<select name="month" onChange="parent.datecalc();">');
+ choicewrite('<select name="month" onchange="parent.datecalc();">');
for (i=0;i<=11;i++) {
choicewrite('<option value='+i);
if (i==thismonth) {
@@ -219,7 +219,7 @@
function intminute() {
var thisminutes=cmins;
var i;
- choicewrite('<select name="minutes" onChange="parent.intcalc();">');
+ choicewrite('<select name="minutes" onchange="parent.intcalc();">');
for (i=0;i<=59;i++) {
choicewrite('<option value='+i);
if (i==thisminutes) {
@@ -233,7 +233,7 @@
function inthour() {
var thishours=chours;
var i;
- choicewrite('<select name="hours" onChange="parent.intcalc();">');
+ choicewrite('<select name="hours" onchange="parent.intcalc();">');
for (i=0;i<=23;i++) {
choicewrite('<option value='+i);
if (i==thishours) {
@@ -247,7 +247,7 @@
function intsecond() {
var thisseconds=csecs;
var i;
- choicewrite('<select name="seconds" onChange="parent.intcalc();">');
+ choicewrite('<select name="seconds" onchange="parent.intcalc();">');
for (i=0;i<=59;i++) {
choicewrite('<option value='+i);
if (i==thisseconds) {
@@ -262,7 +262,7 @@
function intday() {
var thisdate=cdays;
var i;
- choicewrite('<select name="date" onChange="parent.intcalc();">');
+ choicewrite('<select name="date" onchange="parent.intcalc();">');
for (i=0;i<=31;i++) {
choicewrite('<option value='+i);
if (i==thisdate) {
@@ -320,8 +320,8 @@
}
function callradiostringeval(newval) {
- return 'onChange="parent.radiostringeval(\''
- +newval+'\')" onClick="parent.radiostringeval(\''
+ return 'onchange="parent.radiostringeval(\''
+ +newval+'\')" onclick="parent.radiostringeval(\''
+newval+'\')"';
}
@@ -481,10 +481,10 @@
tablestart('Integer range');
choicewrite('<tr><td>Lower Value:'+
'</td><td colspan="2"><input type="text" size="4" name="val2'+
- '"></td></tr>');
+ '" /></td></tr>');
choicewrite('<tr><td>Upper Value:'+
'</td><td colspan="2"><input type="text" size="4" name="val4'+
- '"></td></tr></table>');
+ '" /></td></tr></table>');
var range=new Array;
if ((svalue!='') && (typeof(svalue)!="undefined")) {
range=svalue.split(',');
@@ -509,7 +509,7 @@
}
choicewrite('<tr><td>Value:</td><td colspan="2">');
choicewrite('<input name="intval" size="10" value="'+escapeHTML(svalue)+
- '" name=intval onChange="parent.integereval()">');
+ '" onchange="parent.integereval()" />');
choicewrite('</td></table>');
}
}
@@ -531,7 +531,7 @@
}
choicewrite('<tr><td>Value:</td><td colspan="2">');
choicewrite('<input name="floatval" size="10" value="'+escapeHTML(svalue)+
- '" name=floatval onChange="parent.floateval()">');
+ '" onchange="parent.floateval()" />');
choicewrite('</td></table>');
}
}
@@ -542,131 +542,131 @@
tablestart('Text');
choicewrite('<tr><td>Value:</td><td colspan="2">');
choicewrite('<input name="stringval" size="20" value="'+escapeHTML(svalue)+
- '" type="text" onChange="parent.stringeval()">');
+ '" type="text" onchange="parent.stringeval()" />');
}
if (pscat=='yesno') {
tablestart('Yes/No');
choicewrite('<tr><td>Value:</td><td colspan="2">');
choicewrite('<label><input name="stringval" value="yes"'+
' type="radio" '+callradiostringeval('yes'));
- if (svalue=='yes') { choicewrite(' checked'); }
- choicewrite('> Yes</label><br />');
+ if (svalue=='yes') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Yes</label><br />');
choicewrite('<label><input name="stringval" value="no"'+
' type="radio" '+callradiostringeval('no'));
- if (svalue=='no') { choicewrite(' checked'); }
- choicewrite('> No</label><br />');
+ if (svalue=='no') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> No</label><br />');
}
if (pscat=='problemstatus') {
tablestart('Problem Status');
choicewrite('<tr><td>Value:</td><td colspan="2">');
choicewrite('<label><input name="stringval" value="yes"'+
' type="radio" '+callradiostringeval('yes'));
- if (svalue=='yes') { choicewrite(' checked'); }
- choicewrite('> Yes</label><br />');
+ if (svalue=='yes') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Yes</label><br />');
choicewrite('<label><input name="stringval" value="answer"'+
' type="radio" '+callradiostringeval('answer'));
- if (svalue=='answer') { choicewrite(' checked'); }
- choicewrite('> Yes, and show correct answer if they exceed the maximum number of tries.</label><br />');
+ if (svalue=='answer') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Yes, and show correct answer if they exceed the maximum number of tries.</label><br />');
choicewrite('<label><input name="stringval" value="no"'+
' type="radio" '+callradiostringeval('no'));
- if (svalue=='no') { choicewrite(' checked'); }
- choicewrite('> No, don\'t show correct/incorrect feedback.</label><br />');
+ if (svalue=='no') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> No, don\'t show correct/incorrect feedback.</label><br />');
choicewrite('<label><input name="stringval" value="no_feedback_ever"'+
' type="radio" '+callradiostringeval('no_feedback_ever'));
- if (svalue=='no_feedback_ever') { choicewrite(' checked'); }
- choicewrite('> No, show no feedback at all.</label><br />');
+ if (svalue=='no_feedback_ever') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> No, show no feedback at all.</label><br />');
}
if (pscat=='examtype') {
tablestart('Exam Type');
choicewrite('<tr><td>Value:</td><td colspan="2">');
choicewrite('<label><input name="stringval" value="online"'+
' type="radio" '+callradiostringeval('online'));
- if (svalue=='online') { choicewrite(' checked'); }
- choicewrite('> Online</label><br />');
+ if (svalue=='online') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Online</label><br />');
choicewrite('<label><input name="stringval" value="checkout"'+
' type="radio" '+callradiostringeval('checkout'));
- if (svalue=='checkout') { choicewrite(' checked'); }
- choicewrite('> Check out</label><br />');
+ if (svalue=='checkout') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Check out</label><br />');
}
if (pscat=='questiontype') {
tablestart('Question Type');
choicewrite('<tr><td>Value:</td><td colspan="2">');
choicewrite('<label><input name="stringval" value="problem"'+
' type="radio" '+callradiostringeval('problem'));
- if (svalue=='problem') { choicewrite(' checked'); }
- choicewrite('> Standard Problem</label><br />');
+ if (svalue=='problem') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Standard Problem</label><br />');
// choicewrite('<label><input name="stringval" value="quiz"'+
// ' type="radio" '+callradiostringeval('quiz'));
-// if (svalue=='quiz') { choicewrite(' checked'); }
-// choicewrite('> Quiz</label><br />');
+// if (svalue=='quiz') { choicewrite(' checked="checked"'); }
+// choicewrite(' /> Quiz</label><br />');
choicewrite('<label><input name="stringval" value="practice"'+
' type="radio" '+callradiostringeval('practice'));
- if (svalue=='practice') { choicewrite(' checked'); }
- choicewrite('> Practice</label><br />');
+ if (svalue=='practice') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Practice</label><br />');
choicewrite('<label><input name="stringval" value="exam"'+
' type="radio" '+callradiostringeval('exam'));
- if (svalue=='exam') { choicewrite(' checked'); }
- choicewrite('> Exam</label><br />');
+ if (svalue=='exam') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Exam</label><br />');
// choicewrite('<label><input name="stringval" value="assess"'+
// ' type="radio" '+callradiostringeval('assess'));
-// if (svalue=='assess') { choicewrite(' checked'); }
-// choicewrite('> Assessment</label><br />');
+// if (svalue=='assess') { choicewrite(' checked="checked"'); }
+// choicewrite(' /> Assessment</label><br />');
choicewrite('<label><input name="stringval" value="survey"'+
' type="radio" '+callradiostringeval('survey'));
- if (svalue=='survey') { choicewrite(' checked'); }
- choicewrite('> Survey</label><br />');
+ if (svalue=='survey') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Survey</label><br />');
// choicewrite('<label><input name="stringval" value="form"'+
// ' type="radio" '+callradiostringeval('form'));
-// if (svalue=='form') { choicewrite(' checked'); }
+// if (svalue=='form') { choicewrite(' checked="checked"'); }
// choicewrite('> Input Form</label><br />');
choicewrite('<label><input name="stringval" value="library"'+
' type="radio" '+callradiostringeval('library'));
- if (svalue=='library') { choicewrite(' checked'); }
- choicewrite('> Library</label><br />');
+ if (svalue=='library') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Library</label><br />');
}
if (pscat=='ip') {
tablestart('IP Number/Name');
choicewrite('<tr><td>Value:</td><td colspan="2">');
choicewrite('<input name="stringval" size="20" value="'+escapeHTML(svalue)+
- '" onChange="parent.stringeval()">');
+ '" onchange="parent.stringeval()" />');
}
if (pscat=='fileext') {
tablestart('Allowed File Extensions');
choicewrite('<tr><td>Value:</td><td colspan="2">');
choicewrite('<label><input name="radstringval" value="txt"'+
' type="radio" '+callradiostringeval('txt'));
- if (svalue=='txt') { choicewrite(' checked'); }
- choicewrite('> Plain Text</label><br />');
+ if (svalue=='txt') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Plain Text</label><br />');
choicewrite('<label><input name="radstringval" value="png,jpg,jpeg,gif"'+
' type="radio" '+callradiostringeval('png,jpg,jpeg,gif'));
- if (svalue=='png,jpg,jpeg,gif') { choicewrite(' checked'); }
- choicewrite('> Picture File</label><br />');
+ if (svalue=='png,jpg,jpeg,gif') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Picture File</label><br />');
choicewrite('<label><input name="radstringval" value="doc,xls,ppt"'+
' type="radio" '+callradiostringeval('doc,xls,ppt'));
- if (svalue=='doc,xls,ppt') { choicewrite(' checked'); }
- choicewrite('> Office Document</label><br />');
+ if (svalue=='doc,xls,ppt') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Office Document</label><br />');
choicewrite('<input name="stringval" size="20" value="'+escapeHTML(svalue)+
- '" onChange="parent.stringeval()">');
+ '" onchange="parent.stringeval()" />');
}
if (pscat=='useslots') {
tablestart('Slots control access');
choicewrite('<tr><td>Value:</td><td colspan="2">');
choicewrite('<label><input name="stringval" value="no"'+
' type="radio" '+callradiostringeval('no'));
- if (svalue=='no') { choicewrite(' checked'); }
- choicewrite('> No</label><br />');
+ if (svalue=='no') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> No</label><br />');
choicewrite('<label><input name="stringval" value="resource"'+
' type="radio" '+callradiostringeval('resource'));
- if (svalue=='resource') { choicewrite(' checked'); }
- choicewrite('> Yes, and the scope of student selected slot is a single resource.</label><br />');
+ if (svalue=='resource') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Yes, and the scope of student selected slot is a single resource.</label><br />');
choicewrite('<label><input name="stringval" value="map"'+
' type="radio" '+callradiostringeval('map'));
- if (svalue=='map') { choicewrite(' checked'); }
- choicewrite('> Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, it applies to only one resource.</label><br />');
+ if (svalue=='map') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, it applies to only one resource.</label><br />');
choicewrite('<label><input name="stringval" value="map_map"'+
' type="radio" '+callradiostringeval('map_map'));
- if (svalue=='map_map') { choicewrite(' checked'); }
- choicewrite('> Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, all resources in the map/folder are checked in..</label><br />');
+ if (svalue=='map_map') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, all resources in the map/folder are checked in..</label><br />');
choicewrite('</td></table>');
}
}
@@ -810,7 +810,7 @@
selwrite('<html><body bgcolor="#FFFFFF">');
selwrite('<form name="fsel"><b>'+pname+'</b><br />');
- selwrite('<select name="fcat" onChange="parent.catchange();">');
+ selwrite('<select name="fcat" onchange="parent.catchange();">');
if (ptype=='tolerance') {
sopt('default','Default');
--bisitz1262973597--