Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Return a return value from Perl to Javascript

Thread Tools

Return a return value from Perl to Javascript

Posts: n/a

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?


Peter van der Kamp
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
perl exceptions and return value in finally block Perl Misc 4 11-14-2006 05:27 PM
capture return value from a perl program Perl Misc 28 12-24-2005 08:50 AM
what value does lack of return or empty "return;" return Greenhorn C Programming 15 03-06-2005 08:19 PM
get perl's return value Wilson Chew Java 4 07-29-2004 01:53 AM
getting return value from function without return statement. Seong-Kook Shin C Programming 1 06-18-2004 08:19 AM