[LON-CAPA-cvs] cvs: rat /client ratcode.js
raeburn
raeburn at source.lon-capa.org
Mon Nov 21 09:29:06 EST 2011
raeburn Mon Nov 21 14:29:06 2011 EDT
Modified files:
/rat/client ratcode.js
Log:
- document.clear() was deprecated in Javascript 1.2 (1997),
and now IE 9 does not support it at all.
Index: rat/client/ratcode.js
diff -u rat/client/ratcode.js:1.12 rat/client/ratcode.js:1.13
--- rat/client/ratcode.js:1.12 Tue Aug 24 09:11:43 2010
+++ rat/client/ratcode.js Mon Nov 21 14:29:06 2011
@@ -1,7 +1,7 @@
<!--
The LearningOnline Network
Resource Assembly Tool
-// $Id: ratcode.js,v 1.12 2010/08/24 09:11:43 wenzelju Exp $
+// $Id: ratcode.js,v 1.13 2011/11/21 14:29:06 raeburn Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -1403,7 +1403,7 @@
function infoclear() {
if (notclear!=1) {
infcheck();
- inf.document.clear();
+ inf.document.open();
inf.document.writeln
('<html><body bgcolor="#FFFFFF"><table><tr><td>'+
'<img src="/adm/lonIcons/lonlogos.gif" /></td>');
@@ -1468,7 +1468,7 @@
if ((editmode!=1) && (infostr!=lastinfo)) {
notclear=1;
infcheck();
- inf.document.clear();
+ inf.document.open();
inf.document.writeln(
'<html><body bgcolor="#FFFFFF">'+
'<table><tr><td width="32"><img src="'+raticons+'info.gif" /></td><td bgcolor="#AAFFAA">');
@@ -1622,21 +1622,25 @@
// ------------------------------------------------------ Clears indexer window
function idxclear() {
- idx.document.clear();
+ idx.document.open();
+ idx.document.close();
}
// --------------------------------------------------------- Clears copy window
function copydxclear() {
- copydx.document.clear();
+ copydx.document.open();
+ copydx.document.close();
}
// ------------------------------------------------------- Clears search window
function srchclear() {
- srch.document.clear();
+ srch.document.open();
+ srch.document.close();
}
// --------------------------------------------------------- Clears parm window
function parmclear() {
- parm.document.clear();
+ parm.document.open();
+ parm.document.close();
}
// ------------------------------------------------------ Closes indexer window
@@ -1716,7 +1720,7 @@
copydxmode=mode;
copydxflag=1;
copydx=open("",'copydxout',options);
- copydx.document.clear('');
+ copydx.document.open('');
copydx.document.writeln(
'<html><body bgcolor="#FFFFFF"><h1>Copy from Map</h1>'+
'<form name="mapload"><input type="text" size="40" name="importmap">'+
@@ -1774,7 +1778,7 @@
editmode=1;
notclear=1;
infcheck();
- inf.document.clear();
+ inf.document.open();
inf.document.writeln(
'<html><body bgcolor="#FFFFFF">'+
'<table><tr><td width="32"><img src="'+raticons+'edit.gif" /></td><td bgcolor="#AAFFAA">');
@@ -1946,7 +1950,7 @@
notclear=1;
linkmode=0;
infcheck();
- inf.document.clear();
+ inf.document.open();
inf.document.writeln(
'<html><body bgcolor="#FFFFFF">'+
'<table><tr><td width="32"><img src="'+raticons+'edit.gif" /></td><td bgcolor="#AAFFAA">'+
More information about the LON-CAPA-cvs
mailing list