Re: [htmltmpl] Trailing 1
Brought to you by:
samtregar
From: Barry M. <bmi...@th...> - 2007-04-16 22:57:58
|
That was it! Knew it was simple, but couldn't see it. Thanks! Sam Tregar wrote: > On Mon, 16 Apr 2007, Barry Michels wrote: > >> my $pjx = new CGI::Ajax('change_page' => \&change_page); > > I'm guess that CGI::Ajax is expecting you to return the HTML, not > print it. So try changing this: > > print Show_Content($pg) if(defined $pg); > > To: > > return Show_Content($pg) if(defined $pg); > > When you put a print() as the last statement in a subroutine it will > return 1 when it succeeds. > > -sam |