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

You have to send the data with the .post.

$.post("/cgi-bin/hello_world.pl",$("#frm_name_1").serialize());

where #frm_name_1 is the id of your form. Serialize encodes the set of form elements as a string for submission.

This would be even cleaner

$.post("/cgi-bin/hello_world.pl",$(this).serialize());

Replies are listed 'Best First'.
Re^2: Post from jQuery to Perl - can't access parameters
by stuckdev (Initiate) on Mar 13, 2013 at 15:49 UTC

    yes yes!! Tobyink had the same response -- and you made it even better by allowing the form name to be a variable (using "this" instead of the actual form name). Now, the last thing is to figure out how to call that rewriteDiv function after the form post!!

      The return false; should do the trick.

      Try removing the ";" after the serialize() function.

        Yes! I finally found that little error..thank-you!!

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