[LON-CAPA-cvs] cvs: loncom /xml scripttag.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 18 Feb 2005 05:38:06 -0000
albertel Fri Feb 18 00:38:06 2005 EDT
Modified files:
/loncom/xml scripttag.pm
Log:
- xhtml cleanups
Index: loncom/xml/scripttag.pm
diff -u loncom/xml/scripttag.pm:1.120 loncom/xml/scripttag.pm:1.121
--- loncom/xml/scripttag.pm:1.120 Tue Oct 12 19:26:48 2004
+++ loncom/xml/scripttag.pm Fri Feb 18 00:38:05 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# <script> definiton
#
-# $Id: scripttag.pm,v 1.120 2004/10/12 23:26:48 albertel Exp $
+# $Id: scripttag.pm,v 1.121 2005/02/18 05:38:05 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -118,13 +118,17 @@
$Apache::lonxml::evaluate--;
my (undef,undef,$udom,$uname)=&Apache::lonxml::whichuser();
my $windowopen=&Apache::lonhtmlcommon::javascript_docopen();
- $result.="<script type=\"text/javascript\"> function LONCAPA_scriptvars_".$uname."_".$udom."_"."$Apache::lonxml::curdepth() {newWindow=open('','new_W','width=500,height=500,scrollbars=1,resizable=yes');newWindow.$windowopen;newWindow.document.writeln('<html><head><title>Script Vars</title></head><body bgcolor=\"#FFFFFF\"><pre>";
+ $result.="<script type=\"text/javascript\">
+// <!--
+ function LONCAPA_scriptvars_".$uname."_".$udom."_"."$Apache::lonxml::curdepth() {newWindow=open('','new_W','width=500,height=500,scrollbars=1,resizable=yes');newWindow.$windowopen;newWindow.document.writeln('<html><head><title>Script Vars</title></head><body bgcolor=\"#FFFFFF\"><pre>";
my $listing=&Apache::run::dump($target,$safeeval);
$listing=~s/\'/\\\'/g;
$listing=~s/\n/\\n/g;
$listing=~s/\r/\\r/g;
$result.=$listing;
- $result.= "</pre></body></html>');newWindow.document.close();}</script><a href=\"javascript:LONCAPA_scriptvars_".$uname."_".$udom."_$Apache::lonxml::curdepth();void(0);\">Script Vars</a><br />";
+ $result.= "</pre></body></html>');newWindow.document.close();}
+// -->
+</script><a href=\"javascript:LONCAPA_scriptvars_".$uname."_".$udom."_$Apache::lonxml::curdepth();void(0);\">Script Vars</a><br />";
}
} elsif ($target eq "edit" ) {
#&Apache::run::run($bodytext,$safeeval);