Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: ajax in perl cgi

by chella2104@gmail.com (Sexton)
on Mar 25, 2016 at 06:56 UTC ( [id://1158778]=note: print w/replies, xml ) Need Help??


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

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.

Replies are listed 'Best First'.
Re^5: ajax in perl cgi
by poj (Abbot) on Mar 25, 2016 at 07:51 UTC
    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>
Re^5: ajax in perl cgi
by Anonymous Monk on Mar 25, 2016 at 07:20 UTC

    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
        Where did you add them? Add it Before output html

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1158778]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-26 00:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found