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

When i click submit button nothing will happen

Replies are listed 'Best First'.
Re^3: ajax in perl cgi
by Anonymous Monk on Mar 25, 2016 at 06:50 UTC

    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?

      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