Re: Debug question
- From: "JoeyP" <plantz.3@xxxxxxxxxx>
- Date: 29 Dec 2006 11:22:41 -0800
Paul Lalli wrote:
JoeyP wrote:
I am accessing a (perl)CGI script from an HTML doc. Something is
blowing up in the CGI.
How do I send an 'alert' pop-up message while in the CGI?
You don't. If something is "blowing up" in the CGI program, that
program is not going to correctly create an HTML document that the
browser can render. It is the browser's own Javascript that would
process the alert box.
I tried print " alert("Error"); "; but that didn't work.
Not surprising...
I am new to perl.
The problem has nothing to do with Perl and everything to do with CGI.
You seem to have a fundamental lack of understanding about what a CGI
program is.
If your Perl program is malfunctioning, you need to look at the error
output and see why it's malfunctioning. Either look in the CGI
server's error log, or put this statement near the top of your program,
right after 'use CGI;'
use CGI::Carp qw/fatalsToBrowser/;
Paul Lalli
Thanks a bunch Paul.
use CGI::Carp qw/fatalsToBrowser/; worked.
Thanks
.
- References:
- Debug question
- From: JoeyP
- Re: Debug question
- From: Paul Lalli
- Debug question
- Prev by Date: Re: DB access problems
- Next by Date: Re: DB access problems
- Previous by thread: Re: Debug question
- Next by thread: running ppm on XP 64
- Index(es):
Relevant Pages
|