RE: [cgiapp] Re: Returning an image - Content-type not sent? - resolved!

2006-01-11 Thread Tim Colson \(tcolson\)
I managed to hack it to work by adding a Content-type header manually, before the binmode line: print Content-type: image/jpg\n\n; Did you try jpeg instead of jpg? I think jpeg is the standard. Ok -- good idea... but it didn't work. :-) I tried changing the header_props to this:

[cgiapp] Returning an image - Content-type not sent?

2006-01-09 Thread Tim Colson \(tcolson\)
I'm trying to return an ImageMagick JPG image, directly, and getting malformed header from script. Bad header=ÿØÿà: index.cgi. I dug through the docs, and the CAPTCHA thread where I learned how to set the -type to image/jpg and how to only process text/html in cgiapp_postrun. I have also

[cgiapp] Ajax?

2005-10-19 Thread Tim Colson \(tcolson\)
Say, has anyone got a minimal example of embedding AJAX into a CGI::APP, preferably using some library to abstract the Javascript (CGI::Ajax or SAJAX or something else) ? http://search.cpan.org/~bct/CGI-Ajax-0.6/lib/CGI/Ajax.pm I'd like a supercharged ajaxy version of this TreeTable

RE: [cgiapp] Ajax?

2005-10-19 Thread Tim Colson \(tcolson\)
(To be fair, in Java that will be three separate files for every function, plus a big honkin' EJB library and an XML configuration file. And they will love it, too.) lol -- interesting idea of fair. Many of the java MVC frameworks are not all that different from CA in the amount of

[cgiapp] Dependency Injection?

2005-09-30 Thread Tim Colson \(tcolson\)
Hey folks -- I apologize in advance for asking a tenuously related CGI::App question. My CA app extends my own framework class which creates a Configuration object and has methods to get to it, then it calls actions which can get to the configuration. Fine. But I have created another object

RE: [cgiapp] Re: RFC: synopsis for CGI::App book

2005-09-09 Thread Tim Colson \(tcolson\)
It's pleasant to see such enthusiasm for a book that hasn't been written. It might be interesting and fun to create or edit the book using a wiki. That way, you would end up with a valuable publication even if no publisher sees it as a moneymaker. FYI - Atlassian.com will provide a free

RE: [cgiapp] RFC: CGI::Application::Plugin::Auth

2005-09-01 Thread Tim Colson \(tcolson\)
CGI::Application::Plugin::Auth adds the ability to authenticate users in your CGI::Application modules. I wonder if this plugin shouldn't be called CAP::Authen, rather than just CAP::Auth. It validates that the user is who he says he is (authentication), but not whether or not

[cgiapp] Layout template ideas?

2005-08-29 Thread Tim Colson \(tcolson\)
Howdy folks - My actions populate a template with params, that template is rendered. And then, I want to wrap the results inside another layout template. I'm wondering if the internal (gooey center) template can somehow be reused? (i.e. I may want all the same params set, but just use a

RE: [cgiapp] Layout template ideas?

2005-08-29 Thread Tim Colson \(tcolson\)
Hey Michael - I'm wondering if the internal (gooey center) template can somehow be reused? (i.e. I may want all the same params set, but just use a different template file) I think in most templating systems you just have to make this decision in your perl. Just load a different