Diff for /loncom/homework/lonhomework.pm between versions 1.5 and 1.6

version 1.5, 2000/08/08 19:14:53 version 1.6, 2000/08/11 14:25:24
Line 20  sub handler { Line 20  sub handler {
   my %mystyle;    my %mystyle;
   my $result = '';    my $result = '';
   &Apache::inputtags::initialize_inputtags;    &Apache::inputtags::initialize_inputtags;
   if ($target eq "web") {    $result = Apache::lonxml::xmlparse($target, &getfile($file),
     $result = Apache::lonxml::xmlparse($target,'<scriptlib>/res/103/albertel/default_homework</scriptlib>'.&setup_vars($target).&getfile($file),%mystyle);   &getfile('/home/httpd/html/res/103/albertel/default_homework').&setup_vars($target),%mystyle);
   } else {  
     $result = Apache::lonxml::xmlparse($target,&getfile($file),%mystyle);  
   }  
   #$request->print("Result follows:");    #$request->print("Result follows:");
   $request->print($result);    $request->print($result);
   #$request->print(":Result ends");    #$request->print(":Result ends");
Line 32  sub handler { Line 29  sub handler {
 }  }
   
 sub get_target {  sub get_target {
   return "edit";    return "web";
 }  }
   
 sub setup_vars {  sub setup_vars {
   my ($target) = @_;    my ($target) = @_;
   $Apache::lonhomework::target=$target;    return ';$external::target='.$target.';';
   return '<script>$external::target='.$target.';</script>';  
 }  }
   
 sub send_header {  sub send_header {

Removed from v.1.5  
changed lines
  Added in v.1.6


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