in reply to Re^2: Per CGI::Ajax, different ajax functions on same page
in thread Per CGI::Ajax, different ajax functions on same page

Ok, one $pjx per page/htmldocument, with all the functions that page uses, however many that is

my $pjx = CGI::Ajax->new( first => \&foo, second => \&bar, ## keep adding functions here ## unique names of course );

examples in http://search.cpan.org/dist/CGI-Ajax/MANIFEST, http://cpansearch.perl.org/src/BPEDERSE/CGI-Ajax-0.707/scripts/pjx_combo.pl, http://cpansearch.perl.org/src/BPEDERSE/CGI-Ajax-0.707/scripts/pjx_callback.pl, http://cpansearch.perl.org/src/BPEDERSE/CGI-Ajax-0.707/scripts/pjx_chained.pl

Also examples in CGI::AJAX inside CGI::AJAX and http://www.linux-magazine.com/Magazine/Downloads/62/Perl/, http://www.linux-magazine.com/Issues/2006/62/Perl-AJAX

Replies are listed 'Best First'.
Re^4: Per CGI::Ajax, different ajax functions on same page
by msinfo (Sexton) on Jun 06, 2013 at 19:32 UTC
    Hi, Thanks your information was useful. Code is working perfect now.
    my $cgi = new CGI; # cgi # ajax function my $pjx = new CGI::Ajax( 'exported_func' => \&perl_func, 'exported_fun +c_two' => \&perl_func_two); print $pjx->build_html( $cgi, \&Show_HTML);
    Note: I am new to perlmonks, how do I mark this question as answer, or solved one.