[LON-CAPA-cvs] cvs: rat /client ratcode.js loncom/interface lonannounce.pm loncommon.pm lonpopulate.pm loncom/interface/statistics lonstathelpers.pm

bisitz bisitz@source.lon-capa.org
Wed, 25 Mar 2009 15:49:58 -0000


bisitz		Wed Mar 25 15:49:58 2009 EDT

  Modified files:              
    /loncom/interface	lonannounce.pm loncommon.pm lonpopulate.pm 
    /loncom/interface/statistics	lonstathelpers.pm 
    /rat/client	ratcode.js 
  Log:
  W3C / XHTML conform javascript script tags
  
  
Index: loncom/interface/lonannounce.pm
diff -u loncom/interface/lonannounce.pm:1.77 loncom/interface/lonannounce.pm:1.78
--- loncom/interface/lonannounce.pm:1.77	Thu Feb 26 16:17:29 2009
+++ loncom/interface/lonannounce.pm	Wed Mar 25 15:49:47 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Announce
 #
-# $Id: lonannounce.pm,v 1.77 2009/02/26 16:17:29 schafran Exp $
+# $Id: lonannounce.pm,v 1.78 2009/03/25 15:49:47 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -415,7 +415,7 @@
 
 sub dialscript {
     return (<<ENDDIA);
-<script language="Javascript">
+<script type="text/javascript" language="JavaScript">
 function dialin(day,month,year) {
 	opener.document.$env{'form.formname'}.$env{'form.element'}\_year.value=year;
     var slct=opener.document.$env{'form.formname'}.$env{'form.element'}\_month;
@@ -517,7 +517,7 @@
 
 # ------------------------------------------------------------ Print the screen
     my $js = <<ENDDOCUMENT;
-<script type="text/javascript">
+<script type="text/javascript" language="JavaScript">
 
     function trysubmit() {
         document.anno.action.value="new";
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.775 loncom/interface/loncommon.pm:1.776
--- loncom/interface/loncommon.pm:1.775	Sat Mar 21 21:41:14 2009
+++ loncom/interface/loncommon.pm	Wed Mar 25 15:49:47 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.775 2009/03/21 21:41:14 bisitz Exp $
+# $Id: loncommon.pm,v 1.776 2009/03/25 15:49:47 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -406,7 +406,7 @@
          || ($env{'request.role'}=~/^(au|dc|su)/)
           ) { return ''; }  
    return (<<'ENDSTDBRW');
-<script type="text/javascript" language="Javascript" >
+<script type="text/javascript" language="Javascript">
     var stdeditbrowser;
     function openstdbrowser(formname,uname,udom,roleflag,ignorefilter) {
         var url = '/adm/pickstudent?';
@@ -452,7 +452,7 @@
 
 sub authorbrowser_javascript {
     return <<"ENDAUTHORBRW";
-<script type="text/javascript">
+<script type="text/javascript" language="JavaScript">
 var stdeditbrowser;
 
 function openauthorbrowser(formname,udom) {
@@ -473,7 +473,7 @@
     my ($domainfilter,$sec_element,$formname)=@_;
     my $crs_or_grp_alert = &mt('Please select the type of LON-CAPA entity - Course or Group - for which you wish to add/modify a user role');
    my $output = '
-<script type="text/javascript">
+<script type="text/javascript" language="JavaScript">
     var stdeditbrowser;'."\n";
    $output .= <<"ENDSTDBRW";
     function opencrsbrowser(formname,uname,udom,desc,extra_element,multflag,crstype) {
@@ -796,7 +796,7 @@
     my $first = "document.$formname.$firstselectname";
     # output the javascript to do the changing
     my $result = '';
-    $result.="<script type=\"text/javascript\">\n";
+    $result.='<script type="text/javascript" language="JavaScript">'."\n";
     $result.="var select2data = new Object();\n";
     $" = '","';
     my $debug = '';
Index: loncom/interface/lonpopulate.pm
diff -u loncom/interface/lonpopulate.pm:1.57 loncom/interface/lonpopulate.pm:1.58
--- loncom/interface/lonpopulate.pm:1.57	Thu Dec 11 14:55:15 2008
+++ loncom/interface/lonpopulate.pm	Wed Mar 25 15:49:47 2009
@@ -1,5 +1,5 @@
 # automated enrollment configuration handler
-# $Id: lonpopulate.pm,v 1.57 2008/12/11 14:55:15 bisitz Exp $
+# $Id: lonpopulate.pm,v 1.58 2009/03/25 15:49:47 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -49,7 +49,7 @@
     my ($action) = @_;
     my $notify_check = '/^note_[0-9]+$/';
     my $scripttag = qq|
-<script language='javascript' type='text/javascript'>
+<script type=\"text/javascript\" language=\"JavaScript\">
 <!--
 function process(calling,numauto,nummanual,numlock,numunlock) {
  var checker = 1
@@ -2380,7 +2380,7 @@
     my $institution = &Apache::lonnet::domain($dom,'description');
     if (&user_is_courseowner($courseowner)) {
         $response = '
-<script type="text/javascript">
+<script type="text/javascript" language="JavaScript">
 function agreement_result(caller) {
     document.permission.photopermission.value = caller;
     if (caller == 0) {
@@ -2526,7 +2526,8 @@
         }
         if ($outcome eq 'ok') {
             if (keys(%changes) > 0) {
-                $response = &mt('Update of photos for registered students resulted in the following ').': <br /><script type="text/javascript">
+                $response = &mt('Update of photos for registered students resulted in the following ').': <br />'
+                           .'<script type="text/javascript" language="JavaScript">
 function photowindow(photolink) {
     var title = "Photo_Viewer";
     var options = "scrollbars=1,resizable=1,menubar=0";
Index: loncom/interface/statistics/lonstathelpers.pm
diff -u loncom/interface/statistics/lonstathelpers.pm:1.57 loncom/interface/statistics/lonstathelpers.pm:1.58
--- loncom/interface/statistics/lonstathelpers.pm:1.57	Fri Dec 12 10:01:30 2008
+++ loncom/interface/statistics/lonstathelpers.pm	Wed Mar 25 15:49:53 2009
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonstathelpers.pm,v 1.57 2008/12/12 10:01:30 bisitz Exp $
+# $Id: lonstathelpers.pm,v 1.58 2009/03/25 15:49:53 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -238,7 +238,7 @@
     my $selected = {map { ($_,1) } (&get_selected_symbs($inputname))};
     # Header
     $Str .= <<"END";
-<script language="JavaScript" type="text/javascript">
+<script type="text/javascript" language="JavaScript">
     function checkall(value,seqid) {
         for (i=0; i<document.forms.$formname.elements.length; i++) {
             ele = document.forms.$formname.elements[i];
@@ -1255,7 +1255,7 @@
     my $enddateform = &Apache::lonhtmlcommon::date_setter
         ('Statistics','limitby_enddate',$endtime,undef,undef,$state);
     my $Str;
-    $Str .= '<script language="Javascript" >';
+    $Str .= '<script type="text/javascript" language="JavaScript">';
     $Str .= 'function toggle_limitby_activity(state) {';
     $Str .= '    if (state) {';
     $Str .= '        limitby_startdate_enable();';
@@ -1420,7 +1420,7 @@
              ' enough input.');
     }
     my $html = $/.
-        '<script type="Text/JavaScript">'.
+        '<script type="text/javascript" language="JavaScript">'.
         "document.Statistics.reportSelected.value='$original_report';".
         '</script>'.
         '<input type="hidden" name="correctans" value="true" />'.
Index: rat/client/ratcode.js
diff -u rat/client/ratcode.js:1.8 rat/client/ratcode.js:1.9
--- rat/client/ratcode.js:1.8	Mon Mar 23 22:25:19 2009
+++ rat/client/ratcode.js	Wed Mar 25 15:49:57 2009
@@ -1,7 +1,7 @@
 <!--
 The LearningOnline Network
 Resource Assembly Tool
-// $Id: ratcode.js,v 1.8 2009/03/23 22:25:19 droeschl Exp $
+// $Id: ratcode.js,v 1.9 2009/03/25 15:49:57 bisitz Exp $
 //
 // Copyright Michigan State University Board of Trustees
 //
@@ -41,7 +41,7 @@
 -->
 
 
-<script language="JavaScript">
+<script type="text/javascript" language="JavaScript">
 
 var row=new Array();
 var maxrow=-1;