RE: [cgiapp] CGI Question

2002-01-10 Thread Sabherwal, Balvinder (MBS)
'] -size=[$x]),p, submit, reset, end_form, hr; -Original Message- From: Brett Sanger [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 2:20 PM To: Sabherwal, Balvinder (MBS) Cc: [EMAIL PROTECTED] Subject: Re: [cgiapp] CGI Question Any ideas as what am I doing

[cgiapp] Documentation

2002-01-11 Thread Sabherwal, Balvinder (MBS)
Guy's Is there any site where I can find the complete documentation for CGI::Application?? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[cgiapp] RE: Error in CGI::Application script

2002-01-11 Thread Sabherwal, Balvinder (MBS)
I agree with your error message - testapi.pm did not return a true value! Add a 1; as the last line in the module and this error will go away. -sam I added the line as above and re-ran the script in the debug mode. The output it show's is as below Content-Type: text/html; charset=ISO-8859-1

RE: [cgiapp] Error in CGI::Application script

2002-01-14 Thread Sabherwal, Balvinder (MBS)
I changed the .pm and package name to match the same. Still I am having few errors as below. Am I suppose to declare local variables differently in the package?? I am not sure as I am a starter on the Perl, CGI and CGI::Application and using it for the very first time. [Mon Jan 14 07:45:36 2002]

[cgiapp] Need help with CGI::Application

2002-01-14 Thread Sabherwal, Balvinder (MBS)
I have a cgi script as below - #!/usr/bin/perl -w push(@INC,'c:\program files/apache group/apache/cgi-bin'); use testapi; my $webapp = testapi-new(); $webapp-run();

[cgiapp] Anyone having this problem??

2002-01-14 Thread Sabherwal, Balvinder (MBS)
Every msg posted to the list is being received twice in my mail. Is it with everyone or just me.?? Balvinder K. Sabherwal Sr. DBA (HA) IT - Data Architect Cendant Mortgage 856-917-9632 - (W) Cell/Page:[EMAIL PROTECTED] - To

RE: [cgiapp] Anyone having this problem??

2002-01-14 Thread Sabherwal, Balvinder (MBS)
I don't think that is the issue as the original msg I sent for this problem was addressed only to [EMAIL PROTECTED] address and I received 2 mails for the same msg. This has been going on since yesterday. Everything was fine till yesterday noon. Not sure as why this started to happen.

[cgiapp] TEST PLS IGNORE

2002-01-14 Thread Sabherwal, Balvinder (MBS)
-Original Message- From: Sabherwal, Balvinder (MBS) Sent: Monday, January 14, 2002 11:36 AM To: [EMAIL PROTECTED] Subject: TEST PLS IGNORE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

[cgiapp] Creating Scrolling List with CGI::Application

2002-01-14 Thread Sabherwal, Balvinder (MBS)
Can anyone tell me if this is the right way to append the values to a pre-defined scroll list column?? $output .= $q-scrolling_list(-name= 'apps', -values=); $output .= $q-append(-name='apps', -values=$val); This gives me output as below which is not correct. select name=apps size=1 option

[cgiapp] Re: Internal Error

2002-01-15 Thread Sabherwal, Balvinder (MBS)
Here is the error what I get in my web server's error log. [Tue Jan 15 11:18:07 2002] [error] [client 10.90.74.122] Premature end of script headers: c:/program files/apache group/apache/cgi-bin/testapi.cgi [Tue Jan 15 11:18:07 2002] [error] [client 10.90.74.122] [Tue Jan 15 11:18:07 2002]

RE: [cgiapp] Re: Internal Error

2002-01-15 Thread Sabherwal, Balvinder (MBS)
Shouldn't I have that problem when I run this from the command line as well?? Why only through the web server and not command line?? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 12:59 PM To: [EMAIL PROTECTED] Subject: RE: [cgiapp]

RE: [cgiapp] Re: Internal Error

2002-01-15 Thread Sabherwal, Balvinder (MBS)
[mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 1:10 PM To: Sabherwal, Balvinder (MBS) Subject: RE: [cgiapp] Re: Internal Error Made that change, still the same!! Try printing out $startloc in your error message to see if it's what you think

[cgiapp] how do I do this??

2002-01-18 Thread Sabherwal, Balvinder (MBS)
I am getting an error in one of my scripts in execution of mode2. The error is as [Fri Jan 18 09:12:09 2002] [error] [client 10.90.74.122] Premature end of script headers: c:/program files/apache group/apache/cgi-bin/testapi.cgi [Fri Jan 18 09:12:09 2002] [error] [client 10.90.74.122] [Fri Jan

RE: [cgiapp] how do I do this??

2002-01-18 Thread Sabherwal, Balvinder (MBS)
I have a variable $dir to which I assign a value c:\\sysmondb in my mode1. When the user submits the form, I want to append the value to the $dir. For this reason, I am trying to create a hidden field in the form and want to asign the value of $dir to this hidden field. I have tryed the

RE: [cgiapp] how do I do this??

2002-01-18 Thread Sabherwal, Balvinder (MBS)
There is your problem. Line 58 where you try to open the file. It appears to be looking for $startloc\HASH(0x1c5adf8) which obviously is incorrect. You ask for any ideas why, your error logs tell you exactly why. Have a look at line 58 of your code. in my mode1 I create a hidden field and

RE: [cgiapp] how do I do this??

2002-01-18 Thread Sabherwal, Balvinder (MBS)
Line 4 assigns an anonymous hash ref to value. You do not need any quotes at all. and the fact that it is looking for $startloc would suggest that you are using single quotes around '$startloc' in your open statement which is incorrrect. I would suggest backing up and learning the basics

[cgiapp] Can't pass mode2

2002-01-18 Thread Sabherwal, Balvinder (MBS)
In the below script, When I enter the mode2, the hidden field rm show's me a value of mode2 again insted of mode3. Is tere something I am doing wrong. I can't make this pass mode2. Can someone pls help me. TIA Bal. package testapi; use base 'CGI::Application'; use strict; sub setup {

[cgiapp] popup_menu

2002-01-22 Thread Sabherwal, Balvinder (MBS)
Guru's I have a script which makes a database call and the returned results are stored in a variable. if I pass this variable to the popup_menu, the options I get in the list box are array references. Is there a way to pass the variable to the popup_menu function or will I have to convert the

RE: [cgiapp] popup_menu

2002-01-22 Thread Sabherwal, Balvinder (MBS)
Thanks for the suggestions, Here is what I ended up doing to make it work my $dbh = Sybase::CTlib-ct_connect($usr, $pwd, $srv); ## Connect to the server. my @dbns; my $dbnames = $dbh-ct_sql(select name from master..sysdatabases where name not in ('master' ,'tempdb' ,'sybsystemprocs' ,'model'

[cgiapp] Need a help...

2002-01-25 Thread Sabherwal, Balvinder (MBS)
Guru's Can someone pls give a hand to rewrite the following pice of the code with the help of CGI::Application. I am trying to print a table on the webpage. Thanks Bal. if ( $h == 1) { foreach my $kv (@cols) { print_END_; TD P

RE: [cgiapp] Need a help...

2002-01-25 Thread Sabherwal, Balvinder (MBS)
I knew that, I wanted to know if there is a way of doing this with $q-table() or somthing similar. Thanks for the help Brian!! Bal. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 3:08 PM To: [EMAIL PROTECTED] Subject: Re: [cgiapp]

[cgiapp] Run Mode

2002-03-01 Thread Sabherwal, Balvinder (MBS)
I am having a script which puts a form and on submit, it should change the run mode which its not doing. Can somebody help me here and point me out as what I'm missing in the code?? TIA sub runshell { my $self = shift; #Get CGI query object my $q = $self-query();

[cgiapp] Printing in plain text format.

2002-03-04 Thread Sabherwal, Balvinder (MBS)
Guru's I have the following code in my script. I want to print the output in plain ASCII text. If I use blockquote() it prints in the RTF format and I lose all the space formatting. Is there any way I can change this to print in plain ASCII text?? TIA. Bal. sub showdetails { my $self =

RE: [cgiapp] Printing in plain text format.

2002-03-04 Thread Sabherwal, Balvinder (MBS)
Christensen [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 1:11 PM To: [EMAIL PROTECTED] Subject: Re: [cgiapp] Printing in plain text format. Quoting Sabherwal, Balvinder (MBS) [EMAIL PROTECTED]: Guru's I have the following code in my script. I want to print the output in plain ASCII

RE: [cgiapp] Printing in plain text format.

2002-03-04 Thread Sabherwal, Balvinder (MBS)
In my case, I don't need the error checking as I am having dropdowns on the web page and user selects one file in the list and them I am listing the file contents on the web page. Thanks Bal. -Original Message- From: Spencer Christensen [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04,

RE: [cgiapp] CGI Error [Solved!!]

2002-05-13 Thread Sabherwal, Balvinder (MBS)
)); # if (defined $author) { #push(@result,$XHTML ? link rev=\made\ href=\mailto:$author\; / # : link rev=\made\ href=\mailto:$author\;); # } -Original Message- From: Sabherwal, Balvinder (MBS) [mailto:[EMAIL PROTECTED]] Sent