in reply to Re^2: ajax in perl cgi
in thread ajax in perl cgi

When i click submit button nothing will happen

Ok, so you click button, nothing happens, and then you check the websever logs, what do you see?

Replies are listed 'Best First'.
Re^4: ajax in perl cgi
by chella2104@gmail.com (Sexton) on Mar 25, 2016 at 06:56 UTC

    CGI::param called in list context from /usr/local/share/perl/5.20.2/CGI/Ajax.pm line 485, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/local/share/perl/5.20.2/CGI.pm line 407.

      sub perl_func {
        my @input = @_; # change from @{$_[0]};
      .
      .
      

      Line 46 - change ; to "

      <td><input type="submit" value="Submit" onClick="exported_func +( ['stu_id','stu_name','addr','dept'], ['resultdiv'] ); ></td>

      Regarding that particular warning, CGI::Ajax could use an update for the latest version of CGI

      You need more info, use

      $pjx->DEBUG(1); # turn debugging on, check your web server logs $pjx->JSDEBUG(2); # turn javascript debugging on, no javascript comp +resstion
      and report back
        I added this two lines But same message print error log file Please give some another method to perform ajax in perl cgi