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.
#
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
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
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
##
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
##
>> 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
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
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
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,
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
#
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
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 =
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
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
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
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
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
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
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
##
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
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
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
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
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
> 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.
> >
> >
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
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
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
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
> 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
(-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-
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
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 <[
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
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::
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
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
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
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
39 matches
Mail list logo