--- loncom/homework/chemresponse.pm 2004/09/27 20:59:21 1.39 +++ loncom/homework/chemresponse.pm 2004/09/29 15:17:56 1.41 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # chemical equation style response # -# $Id: chemresponse.pm,v 1.39 2004/09/27 20:59:21 www Exp $ +# $Id: chemresponse.pm,v 1.41 2004/09/29 15:17:56 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -121,9 +121,9 @@ $molecule CHEMPAGE $body=&HTML::Entities::encode($body,'<>&"'); $body=~s/\n/ /g; - my $nothing= &Apache::lonhtmlcommon::javascript_nothing(); + my $docopen=&Apache::lonhtmlcommon::javascript_docopen(); my $result=< + CHEMINPUT return $result; } @@ -309,12 +309,12 @@ sub edit_reaction_button { my $id_es=&Apache::lonnet::escape($id); my $field_es=&Apache::lonnet::escape($field); my $reaction_es=&Apache::lonnet::escape($reaction); - my $nothing= &Apache::lonhtmlcommon::javascript_nothing(); + my $docopen=&Apache::lonhtmlcommon::javascript_docopen(); my $result=< function create_reaction_window_${id}_${field} () { editor=window.open('','','width=500,height=270,scrollbars=no,resizable=yes'); - editor.document.open($nothing,'replace'); + editor.$docopen; editor.document.writeln(' LON-CAPA Reaction Editor '); }