[cgiapp] Re: Plugin question

2005-11-18 Thread Robert Hicks
Michael Graham [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How do I determine if the cgi_prerun has already been set? If it is set how would I add my own prerun code to it? If you're only interested in running your code without trampling on an existing cgiapp_prerun, you have

[cgiapp] Re: Best free DB for a web-based Perl app response results...

2005-12-01 Thread Robert Hicks
... if i only needed MySQL, i'd use SQL Lite. Really? I think that would be a poor choice and I like SQLite. ; ) Robert - Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/

[cgiapp] Validation constraint

2006-02-28 Thread Robert Hicks
I am trying out the ValidateRM plugin. I have it working with one form which is cool. The second form I have deals with hours worked on a project. The hours are put in by increments of .25 (i.e. it could be .50 or 7.75). I know I can check this with the mod ( % ) operator but I haven't a clue

[cgiapp] Validation problem

2006-03-02 Thread Robert Hicks
I have a two forms. One on the initial main page and another to input tasks. The form on the main page gets validated correctly. I use the same code with the second except the fields to validate and it comes back with a blank page when I try to validate it. Any idea looking at this, what the

[cgiapp] Re: Validation problem

2006-03-03 Thread Robert Hicks
Mark Stosberg wrote: On 2006-03-02, Robert Hicks [EMAIL PROTECTED] wrote: I have a two forms. One on the initial main page and another to input tasks. The form on the main page gets validated correctly. I use the same code with the second except the fields to validate and it comes back

[cgiapp] Re: Validation problem

2006-03-03 Thread Robert Hicks
Mark Stosberg wrote: On 2006-03-02, Robert Hicks [EMAIL PROTECTED] wrote: I have a two forms. One on the initial main page and another to input tasks. The form on the main page gets validated correctly. I use the same code with the second except the fields to validate and it comes back

[cgiapp] Re: Validation problem

2006-03-03 Thread Robert Hicks
Michael Peters wrote: Robert Hicks wrote: Everything from the /head down is gone. Sounds like something strange happening. The best way to track this down is to put some debug warn() statements in the code and watch your error log to see where the output is being chopped up. Specifically

[cgiapp] Re: [ValidateRM] Validating dropdown boxes...does it work?

2006-03-03 Thread Robert Hicks
There are lots of people that want to help you, but you have to give them the tools to do so. I think I will give up for today... Give it another try, and send us the actual code. It may just be a silly little mistake like a typo that just needs another pair of eyes to spot (you are using

[cgiapp] What happens after validation?

2006-03-06 Thread Robert Hicks
I have all my forms validating. Yay! The question I have is what happens after validation? If I create a small form like this that doesn't use my validation stuff: Form without validation: form action= method=post table trtdUsername:/td td select

[cgiapp] Re: What happens after validation?

2006-03-07 Thread Robert Hicks
Michael Peters wrote: Robert Hicks wrote: I have all my forms validating. Yay! Congratulations. The question I have is what happens after validation? $self-redirect('index.cgi?rm=show_next_page'); Change that to return $self-show_next_page(); If you do a full redirect

[cgiapp] UNC paths on Windows

2006-03-21 Thread Robert Hicks
This may be an Apache thing, I don't know. I have a script to test my ODBC functionality that connects to a db over an UNC path and a mapped path just fine. I use that same path in my CGI::Application (both the UNC and mapped drive and I am getting: Error executing run mode

[cgiapp] Re: Help with CGI::Application::Plugin::HTMLPrototype

2006-05-22 Thread Robert Hicks
Cees Hek wrote: On 5/21/06, Prakash Inuganti -X (pinugant - Digital-X, Inc. at Cisco) [EMAIL PROTECTED] wrote: Yes, you are correct. Thanks. I already have a full blown Application developed using CAP and H::T. So using Template Toolkit right now is not an option for me. Now I am adding a page

[cgiapp] Getting an error stacktrace

2006-06-26 Thread Robert Hicks
I was playing around with HTML::Mason to see how it worked. I, of course, coded some things wrong and Mason through out a very nice stacktrace/errortrace that showed me the line where I made the error. I asked and found that Mason has a helper module called HTML::Mason::Exceptions that that

[cgiapp] Re: Getting an error stacktrace

2006-06-26 Thread Robert Hicks
Michael Peters wrote: Robert Hicks wrote: I was playing around with HTML::Mason to see how it worked. I, of course, coded some things wrong and Mason through out a very nice stacktrace/errortrace that showed me the line where I made the error. I asked and found that Mason has a helper module

[cgiapp] Re: Getting an error stacktrace

2006-06-28 Thread Robert Hicks
Forgive my ignorance but where exactly do this go: $ENV{CGI_APP_DEBUG} - Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2 To unsubscribe, e-mail:

[cgiapp] Re: initial CGI::Application for Perl6 code published

2006-07-06 Thread Robert Hicks
Mark Stosberg wrote: I've started on porting CGI::Application to Perl6. The current state is that I've made a number of code adjustments, but the module still doesn't compile. I haven't started converting any of the tests. I don't think the replacement for Class::ISA is even implemented

[cgiapp] Re: re-branding CGI::App

2006-07-06 Thread Robert Hicks
Mark Stosberg wrote: Michael Peters wrote: I think we should drop 'CGI' from the name. It has a very negative connotation with some people. They think that CGI scripts are 1990's web even though almost all dynamic web sites operate over the CGI protocol. Web::Application? Web::App ? I

[cgiapp] Re: re-branding CGI::App

2006-07-07 Thread Robert Hicks
Cees Hek wrote: Let's call it møøse!!! Oh wait, that one is taken already. How about døtCGI!!! Nope, no good. How about Cøtølyst!!! This is tougher than I thought :) Seriously though, I think a cool name would be a good thing. But I generally come up with really crap names so I will leave

[cgiapp] Re: re-branding CGI::App

2006-07-09 Thread Robert Hicks
Chico wrote: OK, I am relitively new to scripting with PERL and I am extremely new to web development with PERL and the modules or frameworks. So what I am trying to do is give you a new persons perspective. It is Perl when describing the language and perl when talking about the interpreter.

[cgiapp] Re: Validating a field based on another field...

2006-08-03 Thread Robert Hicks
Mark Stosberg wrote: snip I think you want to use the dependency feature, which can make task_names required when project_names = 'Help Desk'. See the docs for examples and details. I always forget to look at the module docs that the plugin for this depends on: dependencies = {

[cgiapp] Re: CGI::App in the wild: Miami University

2006-08-18 Thread Robert Hicks
Sam Tregar wrote: On Thu, 17 Aug 2006, Mark Stosberg wrote: - Storing photos in PostgreSQL for easy deployment on load-balanced web servers. (So far, that's worked surprising well) That is surprising! Why would you do that instead of using NFS? I am curious about that as well... Robert

[cgiapp] C::A Namespace question (was Re: [ANNOUNCE] CGI::Application::Dispatch)

2006-08-18 Thread Robert Hicks
Michael Peters wrote: The uploaded file CGI-Application-Dispatch-2.01.tar.gz I am just curious as I like C::A and am using it at work. What differentiates a module using the CGI-Application- name versus the CGI-Application-Plugin- namespace? Robert

[cgiapp] Re: C::A Namespace question (was Re: [ANNOUNCE] CGI::Application::Dispatch)

2006-08-18 Thread Robert Hicks
Michael Peters wrote: Robert Hicks wrote: I am just curious as I like C::A and am using it at work. What differentiates a module using the CGI-Application- name versus the CGI-Application-Plugin- namespace? Plugins are used from within a CGI::Application module. Dispatch sits outside of all

[cgiapp] Validation logic

2006-09-05 Thread Robert Hicks
I have the following in my validation script: return { required = [ qw/user_name clin_id charge_ids project_names start_date end_date total_hours/ ], require_some = { task_or_add_task = [ 1, qw/task_names add_task/ ] }, dependencies = {

[cgiapp] In the scope of CGI::APP?

2006-10-10 Thread Robert Hicks
I would like to populate one combo box with data when the user chooses an option from another combo box. I am currently using CA and HT only and would like to keep it that way if possible. If that answer is Javascript that is okay...I would rather it not. ; ) Robert

[cgiapp] HTML::Template - TT

2006-10-10 Thread Robert Hicks
I would like to move one of my sites to TT from HTML::Template. It uses the ValidateRM module currently because the pod examples are in HT. Is there somewhere that shows how to do that? Robert - Web Archive:

[cgiapp] Re: In the scope of CGI::APP?

2006-10-10 Thread Robert Hicks
Sean Davis wrote: Robert Hicks wrote: I would like to populate one combo box with data when the user chooses an option from another combo box. I am currently using CA and HT only and would like to keep it that way if possible. If that answer is Javascript that is okay...I would rather

[cgiapp] Re: In the scope of CGI::APP?

2006-10-10 Thread Robert Hicks
Let's say you've got two lists, and a selection in list A narrows down choices in list B. An app I work on knows list A and list b and the relation between items in both. So, we could use CGI::App and H::T to populate both JS arrays and send that as part of the form. Then, a JS function

[cgiapp] Re: HTML::Template - TT

2006-10-11 Thread Robert Hicks
Dan Horne wrote: All you'd need to do is replace the HT parameters in your templates with TT syntax. You should also look at C::A::Plugin::AnyTemplate if you don't want to change the invocation of your templates by your Perl code I can probably get most of that. However I have small

[cgiapp] Re: HTML::Template - TT

2006-10-11 Thread Robert Hicks
Dan Horne wrote: On Behalf Of Robert Hicks Sent: Thursday, 12 October 2006 3:00 a.m. To: cgiapp@lists.erlbaum.net Subject: [cgiapp] Re: HTML::Template - TT Dan Horne wrote: All you'd need to do is replace the HT parameters in your templates with TT syntax. You should also look at C

[cgiapp] Re: Ajax

2006-10-12 Thread Robert Hicks
Sean Davis wrote: On Thursday 12 October 2006 09:01, Robert Hicks wrote: I know this is sad. What is the term I should be looking for when I want to bring back only the associated records with a drop down selection? I assume you mean What AJAX command do I use?. That depends

[cgiapp] Re: ValidateRM format question

2006-10-16 Thread Robert Hicks
Michael Peters wrote: Robert Hicks wrote: The span class=errors shows up as does the 'Invalid' or 'Missing' message. However, the CSS is not picking up. If your resulting HTML has that span tag like your showing us, then it's not a ValidateRM thing. I have this in my site.css file (just

[cgiapp] ValidateRM $result-valid question

2006-10-19 Thread Robert Hicks
I have a form with option boxes. select name=user option value=1Bob/name When I do a $user = $result-valid('user'): #1 Is what getting passed back the value (i.e. 1) or Bob? #2 When I do a constraint on that is it on the value (i.e. 1) or Bob? The value in this case is the (id) field in the

[cgiapp] Re: ValidateRM $result-valid question

2006-10-19 Thread Robert Hicks
Michael Peters wrote: Robert Hicks wrote: select name=user option value=1Bob/name When I do a $user = $result-valid('user'): #1 Is what getting passed back the value (i.e. 1) or Bob? #2 When I do a constraint on that is it on the value (i.e. 1) or Bob? D::FV just validates what the web

[cgiapp] Re: ValidateRM $result-valid question

2006-10-19 Thread Robert Hicks
Michael Peters wrote: Robert Hicks wrote: select name=user option value=1Bob/name When I do a $user = $result-valid('user'): #1 Is what getting passed back the value (i.e. 1) or Bob? #2 When I do a constraint on that is it on the value (i.e. 1) or Bob? D::FV just validates what the web

[cgiapp] Can't call method OTrakker=HASH(0x197d200) on an undefined value

2006-10-19 Thread Robert Hicks
Thanks to FF I get the following: user_name=2clin_id=1charge_ids=1project_names=3task_names=add_task=Star+Treksubtask_names=start_date=10%2F19%2F2006end_date=total_hours=.25rm=taskform In my code I take the add_task above and put it in a variable like so: my $new_task_name =

[cgiapp] Re: Can't call method OTrakker=HASH(0x197d200) on an undefined value

2006-10-19 Thread Robert Hicks
Mike Friedman wrote: On 10/19/06, Robert Hicks [EMAIL PROTECTED] wrote: if ($new_task_name) { $sth1-$self-dbh-prepare( That should be: if ($new_task_name) { my $sth1 = $self-dbh-prepare( ... As you have it, you're trying to use the strinigified version of $self

[cgiapp] Re: Using AJAX with C::A

2006-10-19 Thread Robert Hicks
Maybe someone with experience could update the CA site with an example or two of doing this with CA? Robert - Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/

[cgiapp] Re: CGI::App CGI:Ajax nearly working - please help with last bit

2006-10-21 Thread Robert Hicks
Michael Peters wrote: Well, the solution is simple, but maybe not what you want to hear. Don't use CGI::Ajax. I've never used it and have never missed it. Just put the necessary Javascript into your templates. I just started using JQuery on Friday. It is really nice. I think CA spoils you

[cgiapp] Re: CGI::App CGI:Ajax nearly working - please help with last bit

2006-10-21 Thread Robert Hicks
Rhesa Rozendaal wrote: Robert Hicks wrote: So now I use 2 frameworks that support plugins; CA and JQuery. :) Hey, HTML::Template::Pluggable supports plugins too, you know ;) Rhesa Okay but I don't use HTML::Template. I use TT. : ) Oh, so I guess that is 3 things now. Robert

[cgiapp] Re: Seeking to contract with qualified CGI::App developers

2006-10-25 Thread Robert Hicks
Rana Banerjee wrote: Mark, Why don't you publish the renumeration offered. 10 cents ~ 30 cents ~ million bucks whatever. if you prefer a junior guy do senior work but only get appriciated like a junior guyput that in quotes. ~rana I asked because it sounded like they had a variety of

[cgiapp] Plain CGI - FastCGI

2006-10-26 Thread Robert Hicks
Do I need to do anything to my CA web application to make it run under FCGI instead of CGI? I have the FastCGI DLL loaded in my Apache instance and I have registered .fgci to be served by it. Can I just rename my index.cgi to index.fcgi and away I go? I am just curious to see if FCGI will

[cgiapp] Re: Plain CGI - FastCGI

2006-10-27 Thread Robert Hicks
Dan Horne wrote: You'll need to need to put your code in a while loop (untested as I use CGI::Application::Dispatch, but it should give you the right idea): use WebApp; use CGI::Fast(); while (my $q = new CGI::Fast) { my $webapp = WebApp-new(QUERY = $q); $webapp-run(); } With the first

[cgiapp] Anyone using Log4perl?

2006-11-13 Thread Robert Hicks
I was wondering if anyone is either working on a Log4perl plugin or is currently using it in CA with a simple pre-run wrapper. I tried a couple ways but am not quite getting it: # this one is in cgiapp_prerun Log::Log4perl::init( $self-cfg('logger_conf') ); $self-param( 'logger' )

[cgiapp] Re: Anyone using Log4perl?

2006-11-13 Thread Robert Hicks
Dan Horne wrote: From: news [mailto:[EMAIL PROTECTED] On Behalf Of Robert Hicks Sent: Tuesday, 14 November 2006 8:38 a.m. To: cgiapp@lists.erlbaum.net Subject: [cgiapp] Anyone using Log4perl? I was wondering if anyone is either working on a Log4perl plugin or is currently using it in CA

[cgiapp] Re: Anyone using Log4perl?

2006-11-13 Thread Robert Hicks
Ron Savage wrote: On Mon, 13 Nov 2006 14:37:34 -0500, Robert Hicks wrote: Hi Robert I was wondering if anyone is either working on a Log4perl plugin or is currently using it in CA with a simple pre-run wrapper. Why not just use CGI::Application::Plugin::LogDispatch? It works perfectly. I

[cgiapp] Re: Oracle shared-server massive number of connections - how to acomplish this?

2006-11-16 Thread Robert Hicks
Chris Drake wrote: Hi All, Is there a way to specify that a connection should use the Oracle shared server feature? I'm only getting a max of a hundred or so connections, each kicking off it's own oracle process to handle it: unless I'm mistaken, a new process means it's *not* a shared

[cgiapp] Re: How should I connect via DBD::Oracle to efficiently obtain 2000+ simultaneous connections?

2006-11-16 Thread Robert Hicks
Chris Drake wrote: Hi Philip Robert, Thanks for those excellent references help offers. Do you (or anyone) know whether or not I should even be *using* a shared server, and have you any idea about how many dedicated connections is too many on a dual-3.8ghz Xeon Linux PC with 8gigs or RAM

[cgiapp] Re: Last day: Web development platform contest and Perl / CGI::Application

2006-12-01 Thread Robert Hicks
I heard there was only 1 Perl team. Sad. I wonder if the location is a major cause of this though. Robert - Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/

[cgiapp] Re: CGI::App and HTML::Template subclasses

2006-12-13 Thread Robert Hicks
Rhesa Rozendaal wrote: Viacheslav Sheveliov wrote: Let's don't write plugins for every H:T-style module! Setting something like: $self -{__CURRENT_TMPL_MODULE} = 'HTML::Template::Compiled'; in your App will do all the job . I would vote not doing this in CGI::Application itself. I'd

[cgiapp] When would you not use CA

2007-01-23 Thread Robert Hicks
I am being contracted for a small site for a friend. It is maybe 5-7 pages and probably 1 form and some AJAX sprinkled in. While I really love CA (I use it at work) I am wondering if this is too small to use Perl/CGI/CA for? Thoughts? Robert

[cgiapp] Re: When would you not use CA

2007-01-23 Thread Robert Hicks
Thank you for your replies. Robert - Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[cgiapp] Re: Returning XML output for AJAX

2007-01-29 Thread Robert Hicks
Bruce McKenzie wrote: OK, so I'm way behind the rest of the world when it comes to XML -- but I am using CGI::Application -- so how hard could it be to catch up? :-) What I want to do is return XML (as an Ajax response) to the jQuery Interface library Autocomplete plugin. In the plugin

[cgiapp] CA::Dispatch

2007-01-29 Thread Robert Hicks
I am just coming up to speed on this one. I am wondering if I am reading the pod right. Am I replacing use base 'CGI::Application' with use base 'CGI::Application::Dispatch'? Then if my module name is package Abrams I would build a dispatch table for my runmodes: sub dispatch_ars {

[cgiapp] HT vs TT speed wise

2007-01-30 Thread Robert Hicks
I have about a 5 page site. I have it going in TT since that is what I normally use. I got to thinking about whether HT was faster since it is just a templating system. Has anyone ever done a comparison? Robert - Web

[cgiapp] Re: HT vs TT speed wise

2007-01-30 Thread Robert Hicks
Ron Savage wrote: Hi Robert I have about a 5 page site. I have it going in TT since that is what I normally use. I got to thinking about whether HT was faster since it is just a templating system. Well, TT is very clever, and /very/ complex, so it'd usually be slower. OTOH, on each

[cgiapp] Re: HT vs TT speed wise

2007-01-31 Thread Robert Hicks
Ron Savage wrote: Hi Robert So then it really comes down to a taste test. : ) Right. And to my taste HT is the one to swallow, with TT the one to spit out. If you care to elaborate I would like to know why? Robert -

[cgiapp] Re: HT vs TT speed wise

2007-01-31 Thread Robert Hicks
Sam Tregar wrote: On Tue, 30 Jan 2007, Ron Savage wrote: OTOH, on each invocation of your CGI script, you're probable only calling HT or TT once to render one page, right? Perhaps best to just not worry about it :-). All too true. But, if you decide to worry about it anyway be sure to try

[cgiapp] Re: HT vs TT speed wise

2007-01-31 Thread Robert Hicks
Ron Savage wrote: Hi Robert Right. And to my taste HT is the one to swallow, with TT the one to spit out. If you care to elaborate I would like to know why? HT is HTML::Template TT is The Template Toolkit Firstly, my choice was a decision taken years ago. It may well be different if taken

[cgiapp] Turning on some global things for HT

2007-02-01 Thread Robert Hicks
I want to turn: loop_context_vars = 1 die_on_bad_params= 0 ON, for all templates. Can I put something in the cgiapp_prerun that does this? Robert - Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/

[cgiapp] Re: Turning on some global things for HT

2007-02-01 Thread Robert Hicks
Mark Stosberg wrote: Robert Hicks wrote: I want to turn: loop_context_vars = 1 die_on_bad_params= 0 ON, for all templates. Can I put something in the cgiapp_prerun that does this? Yes. See the docs for The load_tmpl() callback. It allows you to do just that. Mark Thanks Mark, I

[cgiapp] Re: Turning on some global things for HT

2007-02-01 Thread Robert Hicks
Mark Stosberg wrote: Robert Hicks wrote: I want to turn: loop_context_vars = 1 die_on_bad_params= 0 ON, for all templates. Can I put something in the cgiapp_prerun that does this? Yes. See the docs for The load_tmpl() callback. It allows you to do just that. Mark In reading

[cgiapp] Re: Returning XML output for AJAX

2007-02-04 Thread Robert Hicks
Michael Peters wrote: Rhesa Rozendaal wrote: IMHO, that would be XML::Simple. It's a bit tricky to force XML::Simple to generate the exact same output, but it depends a lot on the context if you need it. I've normally used XML::Simple in the past, but it's not really that simple. I've just

[cgiapp] Re: CA::Dispatch

2007-02-05 Thread Robert Hicks
Michael Peters wrote: Robert Hicks wrote: Do I simple add to my instance script: use AbramsRest::Dispatch; AbramsRest::Dispatch-dispatch(); No, that doesn't get added to your instance script, it becomes your instance script. Dispatch was designed to replace multiple instance scripts

[cgiapp] How do you use your own modules?

2007-02-05 Thread Robert Hicks
I currently have: use lib qw( lib/ ); # all my modules are under here I have been told elsewhere that that is bad form and a full path should be used there instead of a relative one. I currently use Cwd to tell me what my path is so that I can load the appropriate config file. If I hard

[cgiapp] Does loading PARAMS make them global?

2007-02-08 Thread Robert Hicks
my $webapp = AbramsRest-new( PARAMS = { die_on_bad_params = 0, loop_context_vars = 1, global_vars = 1, } ); I have that in my instance script. I am trying to pass those params to all the HT templates. I know that CA has a callback for load_tmpl and I was

[cgiapp] Dangerous CGI practice?

2007-02-08 Thread Robert Hicks
Is it dangerous to pass relative paths to things instead of full paths? For example within my web app I have logging and I tell it where to log by 'logs/logname.log' and not '/home/public/logs/logname.log'. I also have my personal lib as: 'use lib qw( lib/ );' and not:

[cgiapp] Re: Turning on some global things for HT

2007-02-11 Thread Robert Hicks
Mark Stosberg wrote: Robert Hicks wrote: I want to turn: loop_context_vars = 1 die_on_bad_params= 0 ON, for all templates. Can I put something in the cgiapp_prerun that does this? Yes. See the docs for The load_tmpl() callback. It allows you to do just that. Is this sufficient

[cgiapp] Re: Dangerous CGI practice?

2007-02-11 Thread Robert Hicks
I ended up just creating some SetEnv variables and that is working peachy. Robert - Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2 To unsubscribe,

[cgiapp] Re: dbgrid widget?

2007-02-12 Thread Robert Hicks
Ron Savage wrote: Class::DBI? You mean Rose, right? Hint: The correct answer is: Yes! I mean Rose. That isn't the first time I have seen something said like that and in other Perl groups. Is that where the wind is blowing now days? Robert

[cgiapp] Re: dbgrid widget?

2007-02-13 Thread Robert Hicks
Ron Savage wrote: Hi Pascal And the first time for me. Well, everytime I promise myself to learn some OO mapper a new one comes along, from DBIx::Class to Ruby's ActiveRecord to Class::DBI to this. Am I too slow, or too behind the times, or just never need one in the first place? :-) I guess

[cgiapp] Curiosity poll?

2007-02-13 Thread Robert Hicks
I would be interested in seeing how many use TT vs HT. Robert - Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2 To unsubscribe, e-mail: [EMAIL

[cgiapp] Re: Curiosity poll?

2007-02-13 Thread Robert Hicks
Michael Peters wrote: Robert Hicks wrote: I would be interested in seeing how many use TT vs HT. I use both. Sometimes I prefer TT. When would you prefer TT? Robert - Web Archive: http://www.mail-archive.com/cgiapp

[cgiapp] Re: Curiosity poll?

2007-02-13 Thread Robert Hicks
Scott R. Prelewicz wrote: HT 75%, TT 25% depending on the app. Scott R. Prelewicz Noein Incorporated 1517 Kenmore Ave. Kenmore, NY 14227 [EMAIL PROTECTED] 716-867-7063 What would be the push to use TT over HT? Robert - Web

[cgiapp] Re: Curiosity poll?

2007-02-13 Thread Robert Hicks
Jason Purdy wrote: I added the votes up and also surveyed the #cgiapp folks: HT: 7 (Karen, Renee, Ed, Joel, John, Jason, CromeDome) TT: 4 (Adrian, Dan, Barry, hide) Both: 2 (mpeters, Scott) I'm a HT guy, myself. I like how it doesn't have a lot of the functionality support of TT and that

[cgiapp] Perl.com articles on HTML::Template

2007-02-13 Thread Robert Hicks
There are 2 new ones: Advanced HTML::Template: Widgets http://www.perl.com/pub/a/2007/02/02/htmltemplate-widgets.html Advanced HTML::Template: Filters http://www.perl.com/pub/a/2006/11/30/html-template-filters.html They are just some quick articles but (being new to HT) I found them

[cgiapp] HTML standards: do you use them?

2007-02-14 Thread Robert Hicks
I have a couple small sites up that look fine in FF and Safari, have a couple of quirks with IE6 and are zonked with IE7. I usually code my HTML to XHTML standards. These quirks have me looking around and what breaks in IE regarding CSS stuff. Seems kind of off topic but I want to know in

[cgiapp] clueless on the callback for load_tmpl

2007-02-21 Thread Robert Hicks
I have never done a callback before so I used GOOGLE to search for a way to get some globals setup for my webapp. I tried the following thinking it would override the current load_tmpl: sub load_tmpl { my ($self, $tmpl_file, @extra_params) = @_; # die_on_bad_params goes to 0 in

[cgiapp] Re: clueless on the callback for load_tmpl

2007-02-21 Thread Robert Hicks
Thank you both very much. Teach a man to fish... Robert - Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2 To unsubscribe, e-mail: [EMAIL PROTECTED]

[cgiapp] Re: why HT::Compiled? (was: Re: Curiosity poll?)

2007-03-06 Thread Robert Hicks
[EMAIL PROTECTED] wrote: The SWITCH tag is another great thing. Sometimes it is too long winded to do the switch on the Perl side... I wish HT had that one... I like HTC as it is lightweigth but has the features I need. I've never tried to use TT, but it seems to be too heavy for a very

[cgiapp] Re: why HT::Compiled?

2007-03-07 Thread Robert Hicks
Mark Stosberg wrote: [snip] I used TT for one project for offline template generation, using the 'ttree' tool. It was very nice for that-- it worked as a standalone application without the need to learn or use any Perl I think that is a big benefit of getting to know TT, it is useful for

[cgiapp] HT filters

2007-03-07 Thread Robert Hicks
If I create a filter for HT do I have to pass it in a certain way? sub doc_filter { my $text_ref = shift; $$text_ref =~ s|doc.*?/doc||gx; } I thought I was supposed to pass it here: my $tpl = $self-load_tmpl( 'home.tpl', filter = \doc_filter ); But that doesn't seem to have done the

[cgiapp] Re: [Fwd: Re: Re: HT filters]

2007-03-08 Thread Robert Hicks
Ron Savage wrote: Hi Folks This is a copy of an email I sent directly to Robert rather than via the list. Hi Robert In HT only you call it directly: my $tpl = HTML::Template-new( filename = 'home.tpl', filter = \doc_filter ); In CA you call that

[cgiapp] Naming modules

2007-03-12 Thread Robert Hicks
Do you tend to make your module names generic like Site or Webapp? I am doing a couple small sites and I am creating secondary modules to hold things. I have something like: Site.pm Site::Actions.pm Site::Validators.pm Site::SQL.pm Is that good? Or would you replace Site with someting?

[cgiapp] Re: Naming modules

2007-03-13 Thread Robert Hicks
Mark Stosberg wrote: Robert Hicks wrote: Do you tend to make your module names generic like Site or Webapp? I am doing a couple small sites and I am creating secondary modules to hold things. I have something like: Site.pm Site::Actions.pm Site::Validators.pm Site::SQL.pm Is that good

[cgiapp] Re: Naming modules

2007-03-13 Thread Robert Hicks
Never mind that last comment; I see what you mean now. - Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2 To unsubscribe, e-mail: [EMAIL PROTECTED]

[cgiapp] Re: HT filters

2007-03-13 Thread Robert Hicks
Mark Stosberg wrote: Robert Hicks wrote: Mark Stosberg wrote: Christopher Little wrote: Your syntax for the filter is correct and your sub doc_filter should work. Can you provide a little more code and the error message you're getting? I agree with Christopher. Find the spot in the load_tmpl

[cgiapp] Re: HT filters

2007-03-16 Thread Robert Hicks
Mark Stosberg wrote: Robert Hicks wrote: Mark Stosberg wrote: Robert Hicks wrote: Mark Stosberg wrote: Christopher Little wrote: Your syntax for the filter is correct and your sub doc_filter should work. Can you provide a little more code and the error message you're getting? I agree

[cgiapp] CA::Dispatch

2007-03-28 Thread Robert Hicks
Am I right in that you still have to do some rewrite Apache rules? Robert - Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2 To unsubscribe, e-mail:

[cgiapp] Re: CA::Dispatch

2007-03-28 Thread Robert Hicks
Michael Peters wrote: Robert Hicks wrote: Am I right in that you still have to do some rewrite Apache rules? Depends on what you want to do. I run Dispatch as an Apache mod_perl handler and don't need any rewrite rules. If you don't do that, but instead have a normal .cgi script and want

[cgiapp] Re: Emailing Results?

2007-09-10 Thread Robert Hicks
Jason Purdy wrote: This is probably going to start a firestorm, but it's important to have an opposing view voiced so no one thinks MIME::Lite is fit to be tarred feathered. I use it and have had no problems with it. I have used Mail::Sender as well with good effect. Robert

[cgiapp] Re: Emailing Results?

2007-09-18 Thread Robert Hicks
My question would be that MIME::Lite gives me everything I need in one interface and it was easy to use. What would I need to use to: - send email - send email with attachments ML does both of those for me in a relatively easy way. If you have something better, I don't mind using it as long

[cgiapp] Re: strategies for decoupling HTML::Template

2007-10-20 Thread Robert Hicks
A. Pagaltzis wrote: * Jesse Erlbaum [EMAIL PROTECTED] [2007-10-20 04:50]: I am a big fan of HTML::Template, which is why I put in there in the first place. In spite of the fact that I have a strong preference, I made it easy (nay, trivial) to swap in your own templating system. Your request

[cgiapp] Re: strategies for decoupling HTML::Template

2007-10-21 Thread Robert Hicks
A. Pagaltzis wrote: * Karen [EMAIL PROTECTED] [2007-10-21 03:40]: Plus, how many Mason-only or TT-only modules are there out there? More than there are H::T-only modules, right? You can hardly begrudge us H::T users *our* occasional exclusives, can you? Personally, I’m not picking sides. I

[cgiapp] Re: strategies for decoupling HTML::Template

2007-10-22 Thread Robert Hicks
A. Pagaltzis wrote: * Robert Hicks [EMAIL PROTECTED] [2007-10-21 21:10]: I have only seen you post things you don't like. Heh. So it goes. So, what would you use? Well, as I said, both Mason and Petal have things that immediately put me off – but I’ve yet to use them in anger. So I don’t

[cgiapp] Re: strategies for decoupling HTML::Template

2007-10-28 Thread Robert Hicks
A. Pagaltzis wrote: * Robert Hicks [EMAIL PROTECTED] [2007-10-22 20:35]: http://www.fs-output.com/trac/wiki/Nenshi Is that you then? Whoa! No, I had not seen that. I’ll have to take a look and see if our ideas about the design agree sufficiently. Thanks for the link! Regards, No problem

[cgiapp] Nothing fancy but IE chokes?

2008-01-01 Thread Robert Hicks
I have a simple site: www.skylinebaptist.us IE for some reason cannot navigate to: http://www.skylinebaptist.us/index.cgi?rm=ministries Firefox has no problem at all. Any idea why IE barfs (besides IE is crap)? Robert # CGI::Application community mailing list ##

[cgiapp] Re: Nothing fancy but IE chokes?

2008-01-01 Thread Robert Hicks
on the opening tag for the title. Kevin - Original Message - From: Robert Hicks [EMAIL PROTECTED] # CGI::Application community mailing list #### ## To unsubscribe, or change your message delivery options

[cgiapp] Re: Nothing fancy but IE chokes?

2008-01-01 Thread Robert Hicks
Karen wrote: On 1/1/08, Kevin [EMAIL PROTECTED] wrote: Robert, I believe the page is not being rendered because of a missing bracket on the opening tag for the title. Good catch. Robert, you might want to try validating pages, like so:

[cgiapp] Re: Nothing fancy but IE chokes?

2008-01-01 Thread Robert Hicks
Michael Peters wrote: Robert Hicks wrote: You are right *but* the code for that comes from: title[% webpage_title %]/title This probably isn't your problem, but all input that goes in your templates should be HTML escaped unless you know it has been earlier. TT makes this very easy

  1   2   >