in reply to Read JSON data from a form
You try to read a parameter named dataString but your Javascript never sends it.
Maybe you can show us what parameters are actually received by the Perl code? Also, what error message are you receiving on the Perl side of things from the JSON module?
Also, even if it works, currently your Perl script won't necessarily return a well-formatted JSON string to Javascript. Use encode_json instead of Data::Dumper for that.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Read JSON data from a form
by Anonymous Monk on Dec 29, 2013 at 19:18 UTC | |
by Corion (Patriarch) on Dec 29, 2013 at 19:22 UTC | |
by Anonymous Monk on Dec 29, 2013 at 19:33 UTC | |
by Corion (Patriarch) on Dec 29, 2013 at 19:38 UTC |