From: "Pau Marc Munoz Torres" <[EMAIL PROTECTED]> > I just copied this script from CGI::Ajax manual at cpan.org page > > use strict; > use CGI; # or any other CGI:: form handler/decoder > use CGI::Ajax; > > my $cgi = new CGI; > my $pjx = new CGI::Ajax( 'exported_func' => \&perl_func ); > > print $pjx->build_html( $cgi, \&Show_HTML); > > sub perl_func { > my $input = shift; > # do something with $input > my $output = $input . " was the input!"; > return( $output ); > } > > sub Show_HTML { > my $html = <<EOHTML; > <HTML> > <BODY> > Enter something: > <input type="text" name="val1" id="val1" > onkeyup="exported_func( ['val1'], ['resultdiv'] );"> > <br> > <div id="resultdiv"></div> > </BODY> > </HTML> > EOHTML
Most likely you have some whitespace before or after the EOHTML. Remove it. Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/