Diff for /loncom/interface/lonspeller.pm between versions 1.9 and 1.10

version 1.9, 2004/12/02 20:54:26 version 1.10, 2005/02/17 08:29:43
Line 65  sub textsection { Line 65  sub textsection {
     my $suggestions=join(' ',$speller->suggest($word));      my $suggestions=join(' ',$speller->suggest($word));
     $suggestions=~s/\'/\\\'/gs;      $suggestions=~s/\'/\\\'/gs;
     if (($suggestions) && (!$insidelink)) {      if (($suggestions) && (!$insidelink)) {
    my $html=&Apache::lonxml::xmlbegin('encode');
  $output.='<a href="javascript:spellwin=window.open('.   $output.='<a href="javascript:spellwin=window.open('.
     &Apache::lonhtmlcommon::javascript_nothing().      &Apache::lonhtmlcommon::javascript_nothing().
     ',\'spellwin\',\'height=140,width=280,resizable=yes,scrollbars=yes,location=no,menubar=no,toolbar=no\');'.      ',\'spellwin\',\'height=140,width=280,resizable=yes,scrollbars=yes,location=no,menubar=no,toolbar=no\');'.
                     'spellwin.'.&Apache::lonhtmlcommon::javascript_docopen().';spellwin.document.writeln(\'<html><body><h3>'.$word.                      'spellwin.'.&Apache::lonhtmlcommon::javascript_docopen().';spellwin.document.writeln(\''.$html.'<head></head><body><h3>'.$word.
                     '</h3>'.$suggestions.'</body></html>\');spellwin.document.close();spellwin.focus()">';                      '</h3>'.$suggestions.'</body></html>\');spellwin.document.close();spellwin.focus()">';
     }      }
     $output.='<font color="red">'.$word.'</font>';      $output.='<font color="red">'.$word.'</font>';
Line 126  sub handler { Line 127  sub handler {
     &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'});      &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'});
   
     &initspeller();      &initspeller();
     $r->print('<html><head><title>'.      my $html=&Apache::lonxml::xmlbegin();
       $r->print($html.'<head><title>'.
       &mt('Spell Checker').        &mt('Spell Checker').
       '</title></head><body bgcolor="#DDDDDD">'.        '</title></head><body bgcolor="#DDDDDD">'.
       &Apache::lontexconvert::msgtexconverted(        &Apache::lontexconvert::msgtexconverted(

Removed from v.1.9  
changed lines
  Added in v.1.10


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>