Return a return value from Perl to Javascript

P

PvdK

Hello,

I have a form in which the user can enter a query in a query language.
The form is submitted to a perl script that checks if the syntax is OK
and if yes, execute the query and generates a html result page. If
the syntax is not OK, I want the client to display an error message,
in a small pop up window on top of the page from which the form was
submitted. The appearance of the pop up windows must be triggered if
the return value of the perl script is 1. Generating a pop up window
with javascript is easy, but how can I obtain the return value from
the perl script in Javascript ?
I considered the use of cookies, but in case a browser has disabled
them this won't work.
Any ideas?

Thanks.

Peter van der Kamp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top