[LON-CAPA-cvs] cvs: loncom /xml scripttag.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 24 Mar 2006 21:45:52 -0000
albertel Fri Mar 24 16:45:52 2006 EDT
Modified files:
/loncom/xml scripttag.pm
Log:
- making the <window> window creation easier to read an ude the compatability window creation routines
Index: loncom/xml/scripttag.pm
diff -u loncom/xml/scripttag.pm:1.135 loncom/xml/scripttag.pm:1.136
--- loncom/xml/scripttag.pm:1.135 Thu Mar 23 18:47:56 2006
+++ loncom/xml/scripttag.pm Fri Mar 24 16:45:51 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# <script> definiton
#
-# $Id: scripttag.pm,v 1.135 2006/03/23 23:47:56 albertel Exp $
+# $Id: scripttag.pm,v 1.136 2006/03/24 21:45:51 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -350,7 +350,15 @@
'js_ready' => 1,});
my $end_page =
&Apache::loncommon::end_page({'js_ready' => 1,});
- $result = "<script type=\"text/javascript\"> function LONCAPA_newwindow_$Apache::lonxml::curdepth() {newWindow=open('','new_W','width=$width,height=$height,scrollbars=1');newWindow.document.open('text/html','replace');newWindow.document.writeln('$start_page $output $end_page');newWindow.document.close();}</script><a href=\"javascript:LONCAPA_newwindow_$Apache::lonxml::curdepth();void(0);\">$linktext</a>";
+ $result = "<script type=\"text/javascript\">
+//<!--
+ function LONCAPA_newwindow_$Apache::lonxml::curdepth() {
+newWindow=open(".&Apache::lonhtmlcommon::javascript_nothing().",'new_W','width=$width,height=$height,scrollbars=1');
+newWindow.".&Apache::lonhtmlcommon::javascript_docopen().";
+newWindow.document.writeln('$start_page $output $end_page');
+newWindow.document.close();}
+//-->
+</script><a href=\"javascript:LONCAPA_newwindow_$Apache::lonxml::curdepth();void(0);\">$linktext</a>";
} elsif ($target eq 'tex') {
$result = '}';
} else {