How do I add no-cache to headers? Tried this:
$self-header_add(-cache='no-cache');
and will keep guessing, but perhaps the list is
faster :)
Thanks,
Jon
# CGI::Application community mailing list
####
## To
Never mind. It was actually a CGI::Ajax thing, so I
added 'NO_CACHE' in the appropriate spot.
- Original Message -
From: Jonathan Mangin [EMAIL PROTECTED]
To: cgiapp@lists.erlbaum.net
Sent: Friday, April 25, 2008 2:28 PM
Subject: [cgiapp] How to add no-cache to header
How do I add
- Original Message -
From: Todd Ross [EMAIL PROTECTED]
To: cgiapp@lists.erlbaum.net
Sent: Tuesday, March 06, 2007 12:26 PM
Subject: Re: [cgiapp] Re: Failing redirects
news [EMAIL PROTECTED] wrote on 03/06/2007 10:39:27 AM:
Jonathan Mangin wrote:
Hi,
The disk mounted
I have upgraded to CGI.pm 3.25. Same thing.
Here's the code in modules/http/http_protocol.c:
switch (status) {
case HTTP_MOVED_PERMANENTLY:
case HTTP_MOVED_TEMPORARILY:
case HTTP_TEMPORARY_REDIRECT:
return(apr_pstrcat(p,
pThe
Hi,
The disk mounted on /usr/local failed and I had to
reinstall everything. I ended up with:
httpd-2.0.59
perl 5.8.7
mod_perl-2.0.2
CGI.pm 3.10
C::A 4.06
I have several CGI::Application scripts running under
ModPerl::Registry. They were previously working
perfectly with 2.0.55/mod_perl. Now,
- Original Message -
From: Mark Rajcok
To: [EMAIL PROTECTED]
Sent: Monday, November 27, 2006 9:54 PM
Subject: Re: [cgiapp] Returning multiple values with CGI::Ajax
In the template: [% IF ajax_js %] input class=text type=text
id=date name=date size=11 maxlength=10
- Original Message -
From: Mark Rajcok [EMAIL PROTECTED]
To: Jonathan Mangin [EMAIL PROTECTED]
Sent: Tuesday, November 28, 2006 11:57 AM
Subject: Re: [cgiapp] Returning multiple values with CGI::Ajax
Something I saw on the TT list makes me think there's a conflict with
return
- Original Message -
From: Bruce McKenzie [EMAIL PROTECTED]
To: Jonathan Mangin [EMAIL PROTECTED]
Cc: cgiapp@lists.erlbaum.net
Sent: Tuesday, November 21, 2006 4:22 PM
Subject: Re: [cgiapp] Returning multiple values with CGI::Ajax
Maybe I'm misreading what's you're trying to do
I have a package that begins:
package MyApp::Tests;
use base 'MyApp::Base';
use CGI::Carp qw(fatalsToBrowser);
I previously had the CGI::Carp line in Base.pm, and realized
fatalsToBrowser() was not working. I thought that all methods
available to Base would be available in Tests. Is that
- Original Message -
From: RA Jones [EMAIL PROTECTED]
To: List - CGI-Application cgiapp@lists.erlbaum.net
Cc: Jonathan Mangin [EMAIL PROTECTED]
Sent: Thursday, November 09, 2006 5:13 PM
Subject: Re: [cgiapp] Test 2 - is this thing on?
Jonathan Mangin wrote:
First drop-down: select
- Original Message -
From: RA Jones [EMAIL PROTECTED]
To: List - CGI-Application cgiapp@lists.erlbaum.net
Sent: Saturday, October 21, 2006 4:04 PM
Subject: Re: [cgiapp] CGI::App CGI:Ajax nearly working - please help with
last bit
Bruce McKenzie wrote:
I agree you'd be better off
- Original Message -
From: RA Jones [EMAIL PROTECTED]
To: List - CGI-Application cgiapp@lists.erlbaum.net
Sent: Saturday, October 21, 2006 6:26 PM
Subject: Re: [cgiapp] CGI::App CGI:Ajax nearly working - please help with
last bit
Jonathan Mangin wrote:
Well, just to finish
Hi,
I use CGI::Application::Dispatch to avoid hidden runmodes.
CGI::Ajax (at least the way I use it) requires that you tell the form
which inputs to submit. So you could do something like this w/ Javascript:
(for the button):
onclick = return doGetDoctors();
And, assuming you've
- Original Message -
From: Mark Stosberg [EMAIL PROTECTED]
To: cgiapp@lists.erlbaum.net
Sent: Monday, February 20, 2006 4:40 PM
Subject: [cgiapp] Re: PARAMS and CAP::ConfigAuto
On 2006-02-19, Jonathan Mangin [EMAIL PROTECTED] wrote:
Trying to follow the docs in CAP::ConfigAuto
Trying to follow the docs in CAP::ConfigAuto moving cfg_file
definition to the instance script:
#!/usr/bin/perl -wT
use lib qw(.);
use App1;
my $webapp = App1-new(PARAMS = {cfg_file = 'config/app1.conf'});
$webapp-run();
And in Base.pm:
use CGI::Application::Plugin::ConfigAuto (qw/cfg
Trying to follow the docs in CAP::ConfigAuto moving cfg_file
definition to the instance script:
#!/usr/bin/perl -wT
use lib qw(.);
use App1;
my $webapp = App1-new(PARAMS = {cfg_file = 'config/app1.conf'});
$webapp-run();
And in Base.pm:
use
- Original Message -
From: Prakash Inuganti (pinugant) [EMAIL PROTECTED]
To: cgiapp@lists.erlbaum.net
Sent: Tuesday, August 16, 2005 8:39 AM
Subject: [cgiapp] Restrict access to certain run modes
Hi,
How do I restrict user access to certain run modes based on user role.
E.g:
- Original Message -
From: Jeff MacDonald [EMAIL PROTECTED]
To: cgiapp cgiapp@lists.erlbaum.net
Sent: Friday, June 03, 2005 1:25 PM
Subject: [cgiapp] so many ways to do things.. ah the beauty of perl.
Hi,
I have an app which is basically a photoalbum of sorts. Now there is
an
The docs talk about having display run modes and process run modes.
Does that mean I can split mode2 below into 2 run modes? And how
would I call mode3 (show_template_2) with vars from process_mode_1?
sub mode1 {
show_template_1();
}
sub mode2 {
process_mode1();
show_template_2();
}
Hope
Hi,
I'm trying:
sub mode2 {
my $self = shift;
my $session = $self-param('session');
unless ($session-param('Group2') = 3) {
return $self-display_index(); # ??
}
...
}
but when it returns to display_index (mode1) it still
thinks it's in mode2. How can I correct this?
Thanks,
Jon
Mark,
I'm afraid I'm stuck with IE. All I can do is keep pushing for a
standards change.
The user is 'somewhere' and his session has expired. Session parameters
last_url and last_rm are set and he's redirected to login(). After
reauthenticating he's redirected back to $url. At that point, the back
Hi all,
Following recent threads, I'm successful with:
$url = $session-param('last_url') . ?rm= . $session-param('last_rm');
}
$self-header_type('redirect');
$self-header_props(-url=$url);
Now the user has landed in mode3, and the back button goes nowhere useful.
I'm looking for suggestions on
Jonathan Mangin wrote:
And does the address bar in IE always reflect the
proper destination after the redirect?
--Jon
What happens when you use a different browser like Firebird or Opera?
Clayton
And I was enjoying bashing my head against a wall...
Firebird (on Solaris) does work properly
Hi,
I redirect users to another application after a successful login.
$url = http://some.where;;
$self-header_type('redirect');
$self-header_props(-url = $url);
Works great, the address bar reflects the new location.
If the session times out, the user is redirected back to login.
$url =
- Original Message -
From: Michael [EMAIL PROTECTED]
To: Jonathan Mangin [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, October 28, 2004 3:08 PM
Subject: Re: [cgiapp] [OT] Multiple constraints on field (DFV)
Jonathan Mangin wrote:
Is it possible to put multiple constraints
Is it possible to put multiple constraints on an input field?
For instance:
constraints = {id = qr/[A-Z0-9]{3,11}/,
and also:
substr($id,0,2) eq $state_abbrev
somehow? Thanks.
--Jon
-
Web Archive:
I've verified the two work together here by not using session_config.
To buy (dwindling) time, I'm still using inline HTML:
$html .= qq|bunch of HTML|;
return $html;
I'm guessing $self-header_props does not add anything to what's
being returned. How, where or when can, or should, I add headers
to
On Tue, 19 Oct 2004, Jonathan Mangin wrote:
$html .= qq|bunch of HTML|;
return $html;
I'm guessing $self-header_props does not add anything to what's
being returned. How, where or when can, or should, I add headers
to $html?
You guessed wrong. $self-header_props sets the HTTP headers which
- Original Message -
From: Cees Hek [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, October 18, 2004 2:50 AM
Subject: Re: [cgiapp] CGI::Application::Plugin::Session - new session every
call
On Mon, 18 Oct 2004 20:18:17 +1300, Dan Horne [EMAIL PROTECTED]
Hi all,
As is Dan Horne (C::A::P::S - new session every call) I'm upgrading some
code, but I'm new to C::A. I haven't yet used HtmlTemplate or TT. At the
moment I'd like to avoid it, if possible? In cgiapp_init I have this:
my $sid = $query-cookie('CGISESSID') || undef;my $session = new
Hi all,
As is Dan Horne (C::A::P::S - new session every call) I'm upgrading some
code, but I'm new to C::A. I haven't yet used HtmlTemplate or TT. At the
moment I'd like to avoid it, if possible? In cgiapp_init I have this:
my $sid = $query-cookie('CGISESSID') || undef;
my $session = new
- Original Message -
From: Christopher Hicks [EMAIL PROTECTED]
To: CGI::Application Mailing List [EMAIL PROTECTED]; Jonathan
Mangin [EMAIL PROTECTED]
Sent: Sunday, October 17, 2004 9:44 AM
Subject: Re: [cgiapp] C::A without Templates?? (Sessions)
On Sun, 17 Oct 2004, Jonathan Mangin
- Original Message -
From: Christopher Hicks [EMAIL PROTECTED]
To: CGI::Application Mailing List [EMAIL PROTECTED]; Jonathan
Mangin [EMAIL PROTECTED]
Sent: Sunday, October 17, 2004 2:18 PM
Subject: Re: [cgiapp] C::A without Templates?? (Sessions)
On Sun, 17 Oct 2004, Jonathan Mangin
When in the CPAN shell, can you do:
force install CGI::Application
???
- Original Message -
From: Joel Gwynn [EMAIL PROTECTED]
To: Michael Peters [EMAIL PROTECTED]; cgiapp
[EMAIL PROTECTED]
Sent: Monday, September 20, 2004 12:15 PM
Subject: Re: [cgiapp] Installing for perl 5.6.0
I have a very old (cgi-lib.pl) and large script that I need to split into discreet
apps.
App. #1, upon a true condition, simply wants to jump to an arbitrary URL and exit.
How do I do this A small part of this thing was updated to CGI.pm and I have
Mr. Stein's useful-if-not-excellent book
35 matches
Mail list logo