Perl Apache Configuration

2005-03-26 Thread Warren Gwartney
Perhaps someone will understand what is happening here. I've been trying
to configure perl and apache on a redhat8 server with virtual hosts. Perl
works well on the system and is executing cgi-bin scripts as well, but the
output HTML is not being rendered by the browser on my scripts. I know
you're thinking, you're not sending the headers dummy! But please just
take a look: http://www.realtordb.com/cgi-bin/hello2.pl . Most of the
scripts I'm working with are tested and tried but I get the same text only
output for all of them. Any ideas, suggestions, answers would be so
greatly appreciated. Surely I'm not the only one out there who has had
this problem.

The script is your basic html output.
#!/usr/local/bin/perl
# hello.cgi - My first CGI program
print "Content-Type: text/html\n\n";
print " \n";
print "Hello, world!";
print "\n";
print "\n";
print "Hello, world!\n";
print " \n";




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: Internal links with cgi

2005-03-26 Thread David Dorward
On Sat, Mar 26, 2005 at 11:11:15PM +0530, Ankur Gupta wrote:

> I have a link like this. http://127.0.0.1/link.cgi#word";>word.

> When I click on the link word, I want the link.cgi to execute and then it
> should navigate to the word "word".

Then wrap that word in a named anchor or (if you are writing modern
code and don't need to support browsers as obsolete as Netscape 4) a
suitable element with an id.
 
> Its not happening for me. Is it valid in cgi or am I missing something.

All the browser knows is that it has recieved some HTML because it
made a request for an HTTP resource. It doesn't matter how the server
goes about working out what content to send back, CGI, mod_perl, a
static file, its all the same to the client.

-- 
David Dorward  http://dorward.me.uk


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: Internal links with cgi

2005-03-26 Thread Felix Geerinckx
On 26/03/2005, Ankur Gupta wrote:

> http://127.0.0.1/link.cgi#word";>word.
> 
> When I click on the link word, I want the link.cgi to execute and
> then it should navigate to the word "word".

Add a name="word" attribute to you anchor element:

word

-- 
felix

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




RE: Internal links with cgi

2005-03-26 Thread Ankur Gupta
Thanks David and Bill ...
Using named anchors it worked.. I do not care about old versions of
explorers.

--
Ankur

-Original Message-
From: David Dorward,,, [mailto:[EMAIL PROTECTED] On Behalf Of David Dorward
Sent: Saturday, March 26, 2005 11:17 PM
To: Ankur Gupta
Cc: beginners-cgi@perl.org
Subject: Re: Internal links with cgi

On Sat, Mar 26, 2005 at 11:11:15PM +0530, Ankur Gupta wrote:

> I have a link like this. http://127.0.0.1/link.cgi#word";>word.

> When I click on the link word, I want the link.cgi to execute and then it
> should navigate to the word "word".

Then wrap that word in a named anchor or (if you are writing modern
code and don't need to support browsers as obsolete as Netscape 4) a
suitable element with an id.
 
> Its not happening for me. Is it valid in cgi or am I missing something.

All the browser knows is that it has recieved some HTML because it
made a request for an HTTP resource. It doesn't matter how the server
goes about working out what content to send back, CGI, mod_perl, a
static file, its all the same to the client.

-- 
David Dorward  http://dorward.me.uk




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: Internal links with cgi

2005-03-26 Thread Bill Stephenson
On Mar 26, 2005, at 11:41 AM, Ankur Gupta wrote:
Hi,

I have a link like this. http://127.0.0.1/link.cgi#word";>word.


When I click on the link word, I want the link.cgi to execute and then 
it
should navigate to the word "word".

This sounds like a job for Javascript. You can probably do this with an 
"onload" command and I suppose it's a simple script at that, but I 
don't have an example handy. Shouldn't be too hard to find one 
though...

Kindest Regards,
--
Bill Stephenson
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



Internal links with cgi

2005-03-26 Thread Ankur Gupta
Hi,

 

I have a link like this. http://127.0.0.1/link.cgi#word";>word.

 

When I click on the link word, I want the link.cgi to execute and then it
should navigate to the word "word".

 

Link.cgi is executed and everytime it navigates to the top of the page
instead of navigating to the word "word". 

Its not happening for me. Is it valid in cgi or am I missing something.

 

Thanks,

Ankur

 



Re: Formatting Labels with CGI.pm

2005-03-26 Thread Bill Stephenson
On Mar 25, 2005, at 11:55 AM, Lawrence Statton wrote:
The simplest solution is to temporarily turn off autoEscape
Indeed it is. I'll try and remember this, again.
On Mar 25, 2005, at 11:55 AM, Charles K. Clarkson wrote:
I'm guessing that you have something like this somewhere.
use CGI qw/:standard/;
my $Q = CGI->new();

No. I have this...
use CGI;
my $Q = new CGI;
But I would have tried it ;)  I don't keep much html in my perl code 
and hardly ever use CGI.pm's built-in html formatting. I want these 
radio buttons to maintain state and got to dinking with the "-labels", 
which then lead me to try and format the text... in almost every 
conceivable way but the right one.

A big thanks to both Lawrence and Charles.
--
Bill Stephenson
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]