in reply to Re: Post from jQuery to Perl - can't access parameters
in thread Post from jQuery to Perl - can't access parameters

The perl code is definitely getting called. I've ensured that it at least creates a debugging file and spits out the values (but the values are blank).

The debugging file is being created and the output looks like:

The comment text is:

...so I know that's not the problem -- but thanks for the reply.

  • Comment on Re^2: Post from jQuery to Perl - can't access parameters

Replies are listed 'Best First'.
Re^3: Post from jQuery to Perl - can't access parameters
by tobyink (Canon) on Mar 13, 2013 at 15:19 UTC

    Your $.post() is not submitting any data, because you're not telling it what data you want to post. (jQuery is a nice library, but it isn't psychic - you need to tell it what data to post.) Try something like:

    $.post( '/cgi-bin/hello_world.pl', $('#frm_name_1').serialize() );
    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

      OMG!! Thank-you thank-you! I'm getting the values into the file now...something I've struggled with for weeks. Bless you.

      I have it all working now...you are the best!