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

Thanks for looking into my code. But I didn't get you properly. So rephrasing my question below.

my $pjx = new CGI::Ajax( 'exported_func' => \&perl_func ); print $pjx->build_html( $cgi, \&Show_HTML); # First ajax call my $sec_pjx = new CGI::Ajax( 'exported_func' => \&sec_perl_func ); print $sec_pjx->build_html( $cgi, \&Show_HTML); # Second ajax call

Both this ajax calls produce different output on page. How do I combine them in single perl code file.

Replies are listed 'Best First'.
Re^3: Per CGI::Ajax, different ajax functions on same page
by Anonymous Monk on Jun 03, 2013 at 23:05 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.