[LON-CAPA-cvs] cvs: rat(version_2_10_X) /client parameter.html
raeburn
raeburn at source.lon-capa.org
Mon Nov 21 08:39:40 EST 2011
raeburn Mon Nov 21 13:39:40 2011 EDT
Modified files: (Branch: version_2_10_X)
/rat/client parameter.html
Log:
- Backport 1.61, 1.62.
Index: rat/client/parameter.html
diff -u rat/client/parameter.html:1.59 rat/client/parameter.html:1.59.2.1
--- rat/client/parameter.html:1.59 Sat Dec 18 23:18:50 2010
+++ rat/client/parameter.html Mon Nov 21 13:39:40 2011
@@ -5,7 +5,7 @@
The LearningOnline Network with CAPA
Parameter Input Window
//
-// $Id: parameter.html,v 1.59 2010/12/18 23:18:50 raeburn Exp $
+// $Id: parameter.html,v 1.59.2.1 2011/11/21 13:39:40 raeburn Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -70,9 +70,12 @@
}
function choicestart() {
- this.window.choices.document.clear();
- choicewrite('<html><body>');
+ this.window.choices.document.open();
+ choicewrite('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
+ choicewrite('<html xmlns="http://www.w3.org/1999/xhtml">');
choicewrite('<head>');
+ choicewrite('<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />');
+ choicewrite('<title>LON-CAPA</title>');
choicewrite('<style type="text/css">');
choicewrite('<!--');
choicewrite('body {');
@@ -86,6 +89,7 @@
choicewrite('-->');
choicewrite('</style>');
choicewrite('</head>');
+ choicewrite('<body>');
}
function choiceend() {
@@ -382,6 +386,9 @@
if (ptype=='string') {
choicewrite(' action="javascript:stringeval();"');
}
+ if (ptype != 'int' && ptype != 'float' && ptype != 'string') {
+ choicewrite(' action=""');
+ }
choicewrite('>');
if (ptype=='tolerance') {
// 0: pscat
@@ -840,9 +847,12 @@
}
}
- this.window.selector.document.clear();
- selwrite('<html><body>');
+ this.window.selector.document.open();
+ selwrite('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
+ selwrite('<html xmlns="http://www.w3.org/1999/xhtml">');
selwrite('<head>');
+ selwrite('<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />');
+ selwrite('<title>LON-CAPA</title>');
selwrite('<style type="text/css">');
selwrite('<!--');
selwrite('body {');
@@ -854,7 +864,8 @@
selwrite('-->');
selwrite('</style>');
selwrite('</head>');
- selwrite('<form name="fsel"><b>'+pname+'</b><br />');
+ selwrite('<body>');
+ selwrite('<form name="fsel" action=""><b>'+pname+'</b><br />');
selwrite('<select name="fcat" onchange="parent.catchange();">');
if (ptype=='tolerance') {
More information about the LON-CAPA-cvs
mailing list