Wow, this is convoluted, but I basically need to trigger the $.ajax
function in a web page, via a separate Perl script.
I Have a web page whose $.ajax
calls a Perl file which grabs data and returns it to the web page. Then javascript analyzes the data and creates another javascript function call which asks Perl to send an email with that data. [Perl grabs data, sends to js, js calls Perl again to email the analyzed data].
I am asked to write a Perl script that will do the emailing separately, but I desperately need to use existing code; so, can my Perl script call that particular $.ajax
to get the data, analyze it then send it again to Perl for emailing?
Any ideas??