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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Html-template-users mailing list
Html-template-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to