in reply to Re^3: Call Perl script from Javascript
in thread Call Perl script from Javascript

Hi Tangent,all I tried the cgi just as you suggest, but didn't work. To be more clear, I did the following: - write perl script "suggest.pl" - Replace suggest.php in the jquery with suggest.pl
$.get("suggest.pl", {word: $(this).val()},...
did I miss sth?

Replies are listed 'Best First'.
Re^5: Call Perl script from Javascript
by Anonymous Monk on Mar 19, 2014 at 22:27 UTC
    did I miss sth?

    Yes. Read the parent again:

    If you're having trouble with your Perl script feel free to post your code with any errors you are getting.

    The amount of help you get is usually proportional to the amount of effort you show.

      Hi, I tried it...when running the perl script it works (I created a debug output to a file). but when truing it from the website, it doesn't. Regarding the errors, from where can I get the error message if they aren't shown in the cmd? this is my code:
      #!/usr/bin/perl -w use CGI; $cgi = new CGI; $word = $cgi->param('word'); #Debuggin open FILE, ">>", "file.txt"; print FILE "Parameter";
      Thanks, Abed.