Re: [cgiapp] Variable Number of Column in a Table

2008-05-15 Thread Sean Davis
On Thu, May 15, 2008 at 12:21 PM, Joshua Miller [EMAIL PROTECTED] wrote: Yes, but it's not pretty... And it may be pretty slow for largish result sets. You could also consider using client-side javascript to do the table layout and sending the data as JSON, but that obviously adds a level of

Re: [cgiapp] Lazy DBI

2008-02-14 Thread Sean Davis
On Thu, Feb 14, 2008 at 6:27 AM, Joshua Miller [EMAIL PROTECTED] wrote: Just my 2cents... Apache::DBI. Entirely forget about passing it around.. that's too much work. Create an ini file or something, and put your connection options in there, maybe even your own lib to connect to various

Re: [cgiapp] Re: [?? Probable Spam] [cgiapp] [slightly OT] modifying a main page from a popup

2007-02-05 Thread Sean Davis
On Sunday 04 February 2007 15:12, Ron Savage wrote: On Sun, 04 Feb 2007 14:27:23 -0500, Sean Davis wrote: Hi Sean If the relation doesn't exist, I would like to open a popup to allow the user to create the object--no problem here. However, on submission of that object, I would like

[cgiapp] [slightly OT] modifying a main page from a popup

2007-02-04 Thread Sean Davis
Hypothetically speaking (just think about how to build this), I have a complex page with a main object that (in sql terms) has a bunch of foreign-key relationships to other objects--imagine a series of select or option boxes for each of these relationships. If the relation doesn't exist, I

Re: [cgiapp] HT vs TT speed wise

2007-01-30 Thread Sean Davis
On Tuesday 30 January 2007 10:04, Robert Hicks wrote: 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? I haven't done a comparison, but I

Re: [cgiapp] When would you not use CA

2007-01-23 Thread Sean Davis
Robert Hicks wrote: 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? I have watched several small

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

2006-10-19 Thread Sean Davis
On Thursday 19 October 2006 11:12, RA Jones wrote: Michael Peters wrote: IMO, saying you want to learn AJAX without learning JS is like saying you want to learn web programming without learning HTML and HTTP. Sure there are probably frameworks out there that will hide those details

Re: [cgiapp] Ajax

2006-10-12 Thread Sean Davis
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 on the javascript framework you

Re: [cgiapp] Re: Ajax

2006-10-12 Thread Sean Davis
On Thursday 12 October 2006 10:33, Michael Peters wrote: Robert Hicks wrote: It will probably be prototype since there is a CA plugin for it. Do you have a recommendation? But either way, if you're going to get into Ajax, don't be scared of Javascript. Any wrappers that exist (like

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

2006-10-10 Thread Sean Davis
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 it not. ; ) Javascript

Re: [cgiapp] Off-topic - graphing packages

2006-09-08 Thread Sean Davis
On Friday 08 September 2006 06:36, RA Jones wrote: Sorry this is not directly relevant to C::A but may become so for me if I can find an answer - does anyone know of a Perl module/package that can plot a double-y log axis graph using dates (correctly handled) on the x-axis? DBD::Chart and

Re: [cgiapp] CGI Script to pass a file to different servers

2006-07-06 Thread Sean Davis
On 7/6/06 3:00 PM, I BioKid [EMAIL PROTECTED] wrote: Dear All, We have 3 inhouse web servers and 2 remote web servers. All of this web server accept same type of files as input : say foo.txt (these file contain some data and the 5 web server will process it and gives its respective

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

2006-07-06 Thread Sean Davis
On 7/6/06 2:28 PM, Joel Gwynn [EMAIL PROTECTED] wrote: True. One should also consider google-ability. Web::Application could be as difficult to google as .NET. I further this sentiment. Sticking religiously to name is function satisfies one goal, but may fall short for others. Is there

Re: [cgiapp] OT: apache logout and a javascript question

2006-05-02 Thread Sean Davis
On 5/2/06 4:39 AM, Michael Lackhoff [EMAIL PROTECTED] wrote: Hello, I followed the advice from this list and wrote mod_perl authentification- and authorization handlers to move this task from my application to apache. But now I have the problem that for this kind of authentification

Re: [cgiapp] How to split runmodes into different modules

2006-04-03 Thread Sean Davis
On 4/3/06 9:19 AM, Michael Lackhoff [EMAIL PROTECTED] wrote: On 3 Apr 2006 at 8:33, Michael Peters wrote: And if I want to give it a try, where can I read more about these Auth* handlers? This book chapter was written for apache 1.3 and mod_perl 1, so some of it might need some

Re: [cgiapp] How to split runmodes into different modules

2006-04-03 Thread Sean Davis
On 4/3/06 8:33 AM, Michael Peters [EMAIL PROTECTED] wrote: Michael Lackhoff wrote: On 31 Mar 2006 at 12:18, Jesse Erlbaum wrote: One other note, on which I have been harping for years: If you are about to tell me that you can't have a separate instance script for each application

Re: [cgiapp] Re: cgiapp specification best practice

2006-03-21 Thread Sean Davis
On 3/21/06 7:48 AM, Mark Stosberg [EMAIL PROTECTED] wrote: On 2006-03-21, Paul Johnston [EMAIL PROTECTED] wrote: Mark Stosberg wrote: We have a page on the wiki dedicated to this broad topic: http://cgiapp.erlbaum.net/cgi-bin/cgi-app/index.cgi?BestPractices If after reviewing that you

Re: [cgiapp] Design question - structure and authen/authz

2006-02-06 Thread Sean Davis
Are you running your C::A site under mod_perl, or is the C::A straight perl cgi? Sean On 2/6/06 2:51 PM, Ed Pigg [EMAIL PROTECTED] wrote: Hi all, I'm reworking a C::A site to provide more flexibility and control. This site has been functioning using Apache Basic Authentication and that

Re: [cgiapp] The Web programming techniques best documentation question.

2005-12-08 Thread Sean Davis
On 12/8/05 5:03 PM, Ron Savage [EMAIL PROTECTED] wrote: On Thu, 08 Dec 2005 22:01:58 +0300, Strong wrote: Hi Strong I want to study the techniques used in web programming those that o Class::DBI (or perhaps DBIx::Class) Doesn't get much press, but Rose::DB::Object is pretty nice and

Re: [cgiapp] run mode switching;

2005-09-19 Thread Sean Davis
On 9/19/05 1:08 AM, russell [EMAIL PROTECTED] wrote: Hello All, I am using CGI::Application with HTML::Template and have the very general question of how to control run mode switching using a templated approach? I have been hardcoding the next runmode that a submit button should invoke in

Re: [cgiapp] Best way to keep a value for entire session

2005-09-15 Thread Sean Davis
On 9/14/05 11:50 PM, Ski Kacoroski [EMAIL PROTECTED] wrote: Hi, I am creating a password changing page and I have to use expect to access Mac OSX open directory where the passwords reside. Is there a nice way where I could make the connection in the cgiapp_init script and then have it

Re: [cgiapp] Session question

2005-09-14 Thread Sean Davis
On 9/14/05 3:08 PM, Ski Kacoroski [EMAIL PROTECTED] wrote: Hi, I am missing something and am hoping you can help. I am using example code from CGI::Application::Plugin::Session. My code is at the end. My problem is that I display a login form, but when the user clicks ok, the

Re: [cgiapp] Re: Help on possible CGI::Application::Plugin::HTML :Table

2005-08-16 Thread Sean Davis
On 8/16/05 7:16 AM, Johan Bosman (EDS) [EMAIL PROTECTED] wrote: Thanks for the feedback. How should I use the HTML::Table module in a CGI::Application? It seems that I am doing something wrong. In the following code I call a function (_query ) from Query (run mode1) that creates the object

Re: [cgiapp] Sessions and Best Practices

2005-08-15 Thread Sean Davis
On 8/15/05 9:36 AM, Will [EMAIL PROTECTED] wrote: I've been playing around with CGIA and I really like what I see. I've got some very simple apps under my belt, but now I'd like to build something more robust. I will need to authenticate users and keep track of them through my app ( and

Re: [cgiapp] Help on possible CGI::Application::Plugin::HTML:Table

2005-08-15 Thread Sean Davis
On 8/15/05 11:55 AM, Johan Bosman (EDS) [EMAIL PROTECTED] wrote: I am using CGI::Application in a project that also requires HTML:Table and it looks like I would have to write a plug-in to accomplish this. I am not a regular Perl user and am not to sure what is involved in developing plug-ins

Re: [cgiapp] XML Through https

2005-08-04 Thread Sean Davis
On 8/4/05 6:18 AM, Jabir Ahmed [EMAIL PROTECTED] wrote: Hello I have a url like https://secure.web.com and when i pass parameters to and send a request, it send a XML file in return. How do i capture the XML file and parse it using perl. the complete url with parameters would be like

Re: [cgiapp] Re: [OT] CGI::Session is good, but we can do better (a new project is born?)

2005-06-17 Thread Sean Davis
On Jun 17, 2005, at 12:14 AM, Mark Stosberg wrote: On 2005-06-17, David Emery [EMAIL PROTECTED] wrote: The couple of times I've tried working with Class::DBI, I found that it was quite noticably slow compared with doing the same thing via SQL + DBI. I think that could be a problem with

Re: [cgiapp] calling run_mode if form has 2 submit buttons

2005-05-31 Thread Sean Davis
On May 31, 2005, at 9:54 AM, Prakash Inuganti ((pinugant)) wrote: Hi, I am only couple of days old to using CGI::Application. If my form has 2 submit buttons and on click each should call a different run_mode, how do I handle that?. I can give one hidden field with name='rm', what do I do

Re: [cgiapp] configuration modules

2005-03-30 Thread Sean Davis
Just to toss something else into the mix, I have been using XML::Simple, but don't have anything set up to do any caching, etc. It is, just as it says, quite simple to use. Sean On Mar 30, 2005, at 3:09 PM, Michael Peters wrote: Jeff MacDonald wrote: HI, Currently to load up my config's i

Re: [cgiapp] Is this the best way to use Cache::FileCache to cache output?

2005-03-22 Thread Sean Davis
Barry, I have never used it (nor do I have any details to share), but have you looked at: http://httpd.apache.org/docs-2.0/mod/mod_cache.html Sean On Mar 21, 2005, at 10:48 PM, Cees Hek wrote: On Mon, 21 Mar 2005 19:36:38 -0500, Barry Hoggard [EMAIL PROTECTED] wrote: I'm working on a site that

Re: [cgiapp] CGI::Application and CGI::Session

2005-03-10 Thread Sean Davis
On Mar 9, 2005, at 9:52 PM, Peter Fogg wrote: Hello all, This module was written to help me understand the use of CGI::Session with the context of a CGI::Application object. The problem is that when I store the reference to the CGI::Session object that I have created in the CGI::Application

Re: [cgiapp] CGI::Application and CGI::Session

2005-03-10 Thread Sean Davis
On Mar 10, 2005, at 9:52 AM, Peter Fogg wrote: On Mar 10, 2005, at 3:12 AM, Sean Davis wrote: On Mar 9, 2005, at 9:52 PM, Peter Fogg wrote: Hello all, This module was written to help me understand the use of CGI::Session with the context of a CGI::Application object. The problem is that when I

Re: [cgiapp] CGI::Application and CGI::Session

2005-03-10 Thread Sean Davis
On Mar 10, 2005, at 12:56 PM, Peter Fogg wrote: On Mar 10, 2005, at 9:10 AM, Sean Davis wrote: You are absolutely right that the session has not been created in sub destroy. However, I ALWAYS call sub create_set before I call sub destroy. My thinking is that if I create the session object

Re: [cgiapp] Class::DBI please help with error

2005-03-10 Thread Sean Davis
On Mar 10, 2005, at 5:17 PM, [EMAIL PROTECTED] wrote: Hi, I am using Class::DBI in my CGI::Application apps now with no problem when I use on my web host's server. I installed all needed modules locally in my account there and I have had no problems. The problem is using it in any way whatsoever

Re: [cgiapp] CGI::Application and CGI::Session

2005-03-10 Thread Sean Davis
On Mar 10, 2005, at 5:54 PM, Peter Fogg wrote: On Mar 10, 2005, at 11:13 AM, Sean Davis wrote: On Mar 10, 2005, at 12:56 PM, Peter Fogg wrote: On Mar 10, 2005, at 9:10 AM, Sean Davis wrote: You are absolutely right that the session has not been created in sub destroy. However, I ALWAYS call sub

[cgiapp] Directory structure for website

2005-02-22 Thread Sean Davis
This is a bit off-topic I have a cgi::app running as a mod_perl handler. I handle authen/authz via the handler, also, and log username with each request. This all works as expected. However, I also serve static HTML, CSS, and images as part of the site, some of which are shared between

Re: [cgiapp] Directory structure for website

2005-02-22 Thread Sean Davis
that the user from the authen step is allowed (or not) to access a specific resource (page). There is a logical order-Access-Authentication-Authorization. See the apache website for a (mudh) more detailed discussion. Hope this helps. Sean Sean Davis wrote: This is a bit off-topic I have a cgi::app

Re: [cgiapp] [ANNOUNCE] CGI::Application::Plugin::LogDispatch - 0.03

2005-01-20 Thread Sean Davis
Cees, Very nice, at least at the level of the description. Creating a singleton object is quite a nice touch. Seems like some selected other plugins could use the same idea? Sean On Jan 20, 2005, at 11:36 AM, Cees Hek wrote: A new version of CGI::Application::Plugin::LogDispatch has been

Re: [cgiapp] Session management with cgi-app.

2005-01-18 Thread Sean Davis
Franki, Are you using the plugin? If not, that might be a place to start, as it does the session allocation/cookie reading in the right order without requiring any work on your part. Below is what I do (not using the plugin, but). It is NOT textbook or even documented code, but it will

[cgiapp] More dynamic run_mode change questions

2005-01-07 Thread Sean Davis
For those of you using path_info parsing to get at run_modes, how do YOU deal with the dynamic run_mode changes? It is easy enough to return $self-other_run_mode, but in the setting of using path_info, that seems contradictory and may even defeat the apache-based authorization concept (if

Re: [cgiapp] Redirect question

2005-01-07 Thread Sean Davis
On Jan 7, 2005, at 12:59 PM, Michael Graham wrote: I am using CGI::App in a mod_perl environment. I typically have run_modes submit back to themselves for validation, etc. If the form information passes, I return $self-next_run_mode (just an example). I have made a couple of changes to my

Re: [cgiapp] Redirect question

2005-01-07 Thread Sean Davis
For an example, I wrote a quick database for gene expression profiles. We have a quirky access for it (you apply to via email submission rather than automatic), but it is available. As you can see from the URL, it is not mod_perl based and has somewhat limited functionality compared to what

Re: [cgiapp] problem with PATH_INFO not being recognized

2004-12-09 Thread Sean Davis
Punkish, Sorry about that. Version issue. The anonymous array I missed, also. Again, sorry. Thanks for the pointers. Sean On Dec 9, 2004, at 11:10 AM, punkish wrote: On Thu, 9 Dec 2004 06:33:12 -0500, Sean Davis [EMAIL PROTECTED] wrote: Punkish, path_info is going to be interpreted as a cgi

Re: [cgiapp] Re: RFC: CAP::Stream

2004-12-03 Thread Sean Davis
On Dec 2, 2004, at 10:31 PM, Jason Purdy wrote: I updated the documentation from Mark's feedback: http://www.purdy.info/useperl/Stream.html I also took a first crack at the code for the Plugin - it wasn't actually that bad: http://www.purdy.info/useperl/Stream.pm.html So now I just need to test

Re: [cgiapp] Hidden variable or Query String or Form for run mode access?

2004-11-30 Thread Sean Davis
On Nov 29, 2004, at 11:05 PM, Kasturirangan Rangaswamy wrote: Hi, I am sequentially accessing 4 run modes. At each run mode, I give the user a screen, perform some validations and move on to the next mode(screen). The screens are displayed using HTML::Template I am declaring a

[cgiapp] OT: Apache2

2004-11-18 Thread Sean Davis
Off-topic, but I am about to install an apache webserver on one of our machines as a development machine. To a person who does not do web development on a regular basis, but only on an as-needed basis, is there a reason to move to apache2? I know from recent discussions that

Re: [cgiapp] OT: Apache2

2004-11-18 Thread Sean Davis
On Nov 18, 2004, at 12:00 PM, Michael Peters wrote: Sean Davis wrote: Off-topic, but I am about to install an apache webserver on one of our machines as a development machine. To a person who does not do web development on a regular basis, but only on an as-needed basis, is there a reason

[cgiapp] Moving on to mod_perl

2004-11-02 Thread Sean Davis
I have an application that I think would be well-served by moving over to a mod_perl environment and would like to proceed in that direction. I was hoping someone might be willing to share a few step-by-steps or a couple of good links as to how to go about that. I have an Apache server with

Re: [cgiapp] getting data into a param

2004-10-21 Thread Sean Davis
On Oct 21, 2004, at 11:41 AM, Robert wrote: Do I need to stuff the results of that while loop into a return statement or can I just call the following in my application script: my $page_content = WebDB::attu_all(); Nope. This definitely won't work. You will probably need to read a bit about

Re: [cgiapp] RFC - C::A::Plugin::Apache

2004-10-21 Thread Sean Davis
This is my own naivete--what other plugins are affected by such a move? CGI::Session--I think it just needs a param method form the query object? DBH will work just fine, I assume? Others? Sean - Web Archive:

Re: [cgiapp] Hybrid static/dynamic site

2004-10-07 Thread Sean Davis
Joel, You might also look at using Template Toolkit (see site http://template-toolkit.org). It has scripts to allow whole websites to be built with the invocation of a single script. You could also build your templates for the dynamic content at the same time, just leaving the dynamic

Re: [cgiapp] Re: Form validation

2004-10-05 Thread Sean Davis
3. Has anyone developed a generic class based on Class::DBI that supports codes tables. Up until adopting DBI.pm, I always rely on a generic codes table to store fairly static application decodes that really don't need their own table. Some of the codes are keyed on language (error

Re: [cgiapp] Building Complex Applications with C::A and helper modules

2004-10-04 Thread Sean Davis
I have looked into CDBI a bit more (it was I that started all of this several days ago). I am still concerned about handling joins. I agree that it (CDBI) looks fantastic for getting information from a single table at a time, but I often need to pull data from different columns in several tables

Re: [cgiapp] Separate database module?

2004-10-01 Thread Sean Davis
30, 2004, at 4:10 PM, Jaclyn Whitehorn wrote: On Sep 30, 2004, at 2:52 PM, Sean Davis wrote: I am building a cgi::application that queries pretty extensively (at least for me) from a MySQL database. I am having trouble with maintainability, as the SQL code is mixed into the perl code

[cgiapp] Separate database module?

2004-09-30 Thread Sean Davis
I am building a cgi::application that queries pretty extensively (at least for me) from a MySQL database. I am having trouble with maintainability, as the SQL code is mixed into the perl code and, unfortunately, we are changing the database schema fairly often right now. I was wondering what

Re: [cgiapp] Separate database module?

2004-09-30 Thread Sean Davis
] To: Sean Davis [EMAIL PROTECTED] Cc: cgiapp [EMAIL PROTECTED] Sent: Thursday, September 30, 2004 4:00 PM Subject: Re: [cgiapp] Separate database module? On Thu, Sep 30, 2004 at 03:52:45PM -0400, Sean Davis wrote: I am building a cgi::application that queries pretty extensively (at least for me

[cgiapp] cgi::application::plugin::session question

2004-09-29 Thread Sean Davis
This is a VERY basic question regarding sessions with CGI. I have some code below that I would expect to look for a cgi::cookie with a session ID from a previous visit. If the cookie exists, use the session ID from the cookie, otherwise the session ID is undefined and C::A::P::S makes a new

Re: [cgiapp] Re: cgi::application::plugin::session question

2004-09-29 Thread Sean Davis
On Sep 29, 2004, at 8:34 AM, Mark Stosberg wrote: On 2004-09-29, Sean Davis [EMAIL PROTECTED] wrote: $self-param('dbh' = DBI-connect($dsnnlt, $nltuser, $nltpass )) or croak

Re: [cgiapp] cant read cookie values from popup window.......

2004-09-21 Thread Sean Davis
The correct list is: [EMAIL PROTECTED] Hope that helps. On Sep 21, 2004, at 5:48 AM, manoj tr wrote: hai, At first i am very sorry to write again to this list. may i please know the mailing list that i put this question?. Secondly i use the strict paragma and and declared variable as

[cgiapp] Basic parameter passing question

2004-09-08 Thread Sean Davis
I am using HTML::Template and need to pass cgi parameters between run modes. Do I have to always use a hidden field, or is it adequate to set the parameter via $query-param('name','value')? In my current app, I seem to have to use a hidden field and I have seen others choosing to do both,

Re: [cgiapp] Re: plugins

2004-09-08 Thread Sean Davis
Cees, Just wondering: is the template toolkit plugin forthcoming on cpan? Thanks, Sean - Original Message - From: Mark Stosberg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 9:33 PM Subject: [cgiapp] Re: plugins On 2004-05-29, Cees Hek [EMAIL PROTECTED]

[cgiapp] Unexpected CGI and HTML

2004-06-24 Thread Sean Davis
-- !-- TMPL_VAR NAME=fetchwhat -- !-- TMPL_VAR NAME=b_submit -- !-- TMPL_VAR NAME=ENDFORM -- hr /body /html On 6/24/04 3:18 PM, William McKee [EMAIL PROTECTED] wrote: On Thu, Jun 24, 2004 at 01:42:35PM -0400, Sean Davis wrote: From where is the tagset div/div coming