[cgiapp] Dropdown Menu

2010-04-14 Thread Adam
I want to have a dropdown menu that shows years 2000 thru 2015. I'm using HTML::Template and I know I can pass an array ref to HTML::Template and loop over it to make the menu, but how would I put in a "selected" year? What's the best method? The selected year would be decided at runtime. #

[cgiapp] Custom Error Messages - CGI::Applicaiton::Plugin::ValidateRM

2009-08-03 Thread adam
the right place to do that. I see that you get a Data::FormValidator::Results object passed to the anonymous subroutne via the constraint, but can I insert multiple error messages with that? Thanks, Adam # CGI::Application community mailing list

RE: [cgiapp] Proposed new look and branding for cgi-app.org

2009-04-27 Thread adam
As far as branding... I'd say get a mail server that works all the time... When a user frustrates over the flaky mail server, isn't good for the brand. -Adam # CGI::Application community ma

[cgiapp] CGI::Application::Plugin::FormBuilder?

2009-04-16 Thread adam
ilder plugin for CGI::Application? If there isn't a reason other than it just hasn't been done, I'd like to consider that for my first public module. Thanks, Adam # CGI::Application community mailing list ##

[cgiapp] CGI::Application::Plugin::FormBuilder?

2009-04-16 Thread adam
ilder plugin for CGI::Application? If there isn't a reason other than it just hasn't been done, I'd like to consider that for my first public module. Thanks, Adam # CGI::Application community mailing list ##

RE: [cgiapp] Re: Proper Way To Load Template Params

2009-03-19 Thread adam
>> My template is getting data via a SQL query. There is exactly one row >> retrieved. >> >> Currently I use the below method to show all records using a loop: >> $template->param( >> RESULTS => $self->dbh->selectall_arrayref(' >> SELECT age, day FROM table WHERE id = ?', >> { Slice => {} }, >> $s

[cgiapp] Proper Way To Load Template Params

2009-03-16 Thread adam
My template is getting data via a SQL query. There is exactly one row retrieved. Currently I use the below method to show all records using a loop: $template->param( RESULTS => $self->dbh->selectall_arrayref(' SELECT age, day FROM table WHERE id = ?', { Slice => {} }, $self->sessio

[cgiapp] Apache 1.3 vs Apache 2.2

2009-03-06 Thread adam
GI::Application users, can you tell me which one you prefer? Thanks, Adam # CGI::Application community mailing list #### ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlb

[cgiapp] Loading DBI hashref into HTML::Template Table

2008-09-25 Thread adam
I found this method on PerlMonks and can't get it to work. How do I get it to work? I want a simple way to load my DB query into a HTML table. Thanks for any advice. I'm getting this error: Error executing run mode 'login': DBI selectall_hashref: invalid number of arguments: got handle + 1,

[cgiapp] Displaying LoggedIn or Login

2008-01-13 Thread adam
d in? My thought is to register a template callback to figure out if I'm logged in and pass HTML::Template a boolean for Something like this: Logged In Not Logged In Does this sound right or is there a better way? Thanks, Adam #

[cgiapp] How to integrate a module?

2008-01-11 Thread adam
SUMMARY: How should I integrate my OO module with CGI::Applcaiton? Details: Here is my first OO module ( Tools::Users ) that administers users on my system. Create a user object populated with user info from DB: my $user = Tools::User->new( $user_id ); Get info for user stored in db: my $name

[cgiapp] How to integrate a module?

2008-01-11 Thread adam
SUMMARY: How should I integrate my OO module with CGI::Applcaiton? Details: Here is my first OO module ( Tools::User ) that administers users on my system. Create a user object populated with user info from DB: my $user = Tools::User->new( $user_id ); Get info for user stored in db: my $name =

[cgiapp] How to integrate a module ?

2008-01-11 Thread adam
SUMMARY: How should I integrate my OO module with CGI::Application? Need advice and direction. Details: Here is my first OO module ( Tools::User ) that administers users on my system. Creates a user object populated with user info from DB: my $user = Tools::User->new( $user_id ); Get info fo

RE: [cgiapp] Saving Data From Authentication Phase

2008-01-08 Thread adam
I figured it out. My subroutine needed to be declared in my setup. It was being declared in the Webapp namespace and not the Webapp::setup namespace. That's why $self wasn't available for storing it into the session. Thanks, Adam > Original Message >Subj

RE: [cgiapp] Saving Data From Authentication Phase

2008-01-08 Thread adam
When I try that in the login coderef passed to the CGI::Application::Plugin::Authentication, I get an error about $self not being an explicit package name. They only thing that gets passed to the coderef is the username and password, not $self. I don't see a way to save the AD data to the ses

[cgiapp] Saving Data From Authentication Phase

2008-01-08 Thread adam
irectory->new('WINDOWS'); return 0 if not $ad_auth->login( $username, $password ); # how do I store this info in the hash ref so I always have it??? $users_hash_ref = $ad_auth->getUserInfo; retrun 1; } Thanks, Adam # CGI::Application commu

[cgiapp] Saving Data From Authentication Phase

2008-01-08 Thread adam
work my $ad_auth = MyCompany::ActiveDirectory->new('WINDOWS'); return 0 if not $ad_auth->login( $username, $password ); # how do I store this info in the hash ref so I always have it??? $users_hash_ref

[cgiapp] Saving Data From Authentication Phase

2008-01-08 Thread adam
h = MyCompany::ActiveDirectory->new('WINDOWS'); return 0 if not $ad_auth->login( $username, $password ); # how do I store this info in the hash ref so I always have it??? $users_hash_ref = $ad_auth->getUserInfo; retrun 1; } Thanks, Adam # CGI::Application

[cgiapp] Saving Data From Authentication Phase

2008-01-08 Thread adam
return 0 if not $ad_auth->login( $username, $password ); # how do I store this info in the hash ref so I always have it??? $users_hash_ref = $ad_auth->getUserInfo; retrun 1; } Thanks, Adam # CGI::Application community mailing list ##

RE: [cgiapp] headers problem

2008-01-05 Thread adam
I'm very new at CGI::Application too, but I'd say make sure you have CGI::Application and HTML::Template installed. Try using "CGI::Carp qw( fatalsToBrowser )" and try invoking the application from your shell and see what happens. Maybe you're getting some kind of error. Original M

RE: [cgiapp] Adding Footer to Output

2008-01-02 Thread adam
I know it really doesn't matter. This is more of an exercise of leaning CGI::Application, plus I know it will come in useful. Thanks for everyones help, I'll try the callback. On 1/2/08, Karen <[EMAIL PROTECTED]> wrote: >Soap

[cgiapp] Adding Footer to Output

2008-01-01 Thread adam
year each time? I'd like this to be automatic. Thanks, Adam # CGI::Application community mailing list #### ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlbaum.ne

Re: [cgiapp] cgi::app, cgi::session & https

2003-11-18 Thread Adam Gent
rack there? > Hi, The way I do it is to have a parm in the instance script that says if the page is to be secure or not. In the cgiapp_init section I have checks that if the flag is set to secure and the session is not secure I redirect to secure and the same the other way. Adam --- Out

Re: [cgiapp] Re: URL Encryption

2003-10-07 Thread Adam Gent
that in the DB and supply them with that in the query string. That way you just look up the report on the param in the query and use that. There are many ways to do it. The last one would be the quickest to execute as you are not, generating hashes or encrypting\decrypting each time. Adam

Re: [cgiapp] How to download a dynamically generated file

2003-09-10 Thread Adam Gent
> Adam Gent wrote: > > >Hi, > > > >There is no reason why it can not be all done within the C::A. > > > >If the run mode generates the file and saves it to disk as a temporary file. > >The run mode can then output the correct header. > > > >

Re: [cgiapp] How to download a dynamically generated file

2003-09-10 Thread Adam Gent
nd (2) you've set both the filehandle that you're reading the > file in from and STDOUT that you're writing the file out to to "binary > mode" if you're on a platform like Windoze that does nasty CRLF > translations otherwise. > > - Steve > Hi, The

Re: [cgiapp] POST or GET

2003-09-05 Thread Adam Gent
t; > . > . > . > > > and when I went to the next mode, a GET was performed and all the params > where in the URL (including password which is not very nice) > > Any guidelines? > > Thanks > > Hi, The reason a GET was performed is because you did not speci

Re: [cgiapp] Run modes structure and style

2003-09-01 Thread Adam Gent
default run mode, or you can specify the run mode through a parameter in the url. i.e. some script for the default run mode or some script, calling some run mode Adam - Original Message - From: "Dimitris Papaharisis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent

Re: [cgiapp] Re: Redirecting To Secure Page Through C::A

2003-08-26 Thread Adam Gent
esh which was causing the problem. In a live environment this would not be the case as once the setting is done it would not be changed or at least not until a site update which would be rare. Adam --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.co

Re: [cgiapp] Re: Redirecting To Secure Page Through C::A

2003-08-26 Thread Adam Gent
> In article <[EMAIL PROTECTED]>, Adam Gent wrote: > > Hi All, > > > > I am trying to do a redirect to a secure page depending upon a variable in > > the instance script. > > > > The code I am using is shown below and is within the cgiapp_prerun routin

[cgiapp] Redirecting To Secure Page Through C::A

2003-08-25 Thread Adam Gent
(-path_info=>1,-query=>1); $url =~ s/http:\/\//https:\/\//; $self->header_type('redirect'); $self->header_props(-url=>$url); } Thanks, Adam - Web Archive: http://www.mail-

[cgiapp] cgiapp_init and cgiapp_prerun

2003-07-20 Thread Adam Gent
results into a runmode within the existing from, cgiapp_init would not rerun. And am I also right in assuming that cgiapp_prerun will run before any run mode is executed, so that it would be a perfect place to put in session validation.. Thanks, Adam --- Outgoing mail is certified Virus Free

Re: [cgiapp] Re: Subs in superclass

2003-07-07 Thread Adam Gent
Hi Mark, I managed to work it out in the end, but thanks for you help. Adam - Original Message - From: "Mark Stosberg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 07, 2003 11:24 PM Subject: [cgiapp] Re: Subs in superclass > In article <[

[cgiapp] Subs in superclass

2003-07-07 Thread Adam Gent
Hi All, I am wanting to put a sub into the my superclass that I can then call from the application modules. Is this possible, as I can not seem to find anyway to call the sub. Any ideas? Thanks. Adam --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http

Re: [cgiapp] Re: Request Changes To CGI::Application::Generator

2003-06-16 Thread Adam Gent
recent versions of the generator. I will look at getting some patches sorted for it. Adam - Original Message - From: "Mark Stosberg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 16, 2003 3:25 PM Subject: [cgiapp] Re: Request Changes To CGI::

Re: [cgiapp] Re: Request Changes To CGI::Application::Generator

2003-06-15 Thread Adam Gent
de methods as sub1 and sub2 So ideally it should do some sort of split on the => and use the right hand value to create the run modes. I hope this makes sense, I may be able to make some sort of patch, if this would be useful. Adam - Original Message - From: "Mark Stosberg&quo

[cgiapp] Request Changes To CGI::Application::Generator

2003-06-14 Thread Adam Gent
in they are passed through to the template. i.e. author=Adam Gent is passed into the generator, this is passed straight through template, without any modification, so then I can put something like into the template. The easiest way to do this that I can think of would be to copy the entire

[cgiapp] CGI::App and Instance Script

2003-06-14 Thread Adam Gent
into the instance script it runs that run mode, if you do not pass in a run mode, it uses the default start run mode. The run mode needs to be specified as rm=run_mode. Also what happens when a run mode is specified but does not exist in the package. Thanks, Adam --- Outgoing mail is certified

Re: [cgiapp] CGI-Simple vs. CGI.PM

2003-06-08 Thread Adam Gent
Take a look at this http://search.cpan.org/src/JFREEMAN/Cgi-Simple-0.06/cgi-simple_vs_cgi-pm.html It shows benchmark comparisons between the two. Adam - Original Message - From: "Bob Hicks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 08