Re: Debug question
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 29 Dec 2006 10:33:04 -0800
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
.
- Follow-Ups:
- Re: Debug question
- From: JoeyP
- Re: Debug question
- References:
- Debug question
- From: JoeyP
- Debug question
- Prev by Date: Re: FAQ 5.2 How do I change, delete, or insert a line in a file, or append to the beginning of a file?
- Next by Date: Re: DB access problems
- Previous by thread: Debug question
- Next by thread: Re: Debug question
- Index(es):
Relevant Pages
|