Hi
I have a form post to a url. The 'runmode' is passed as a form field. The
'instance script' is called and it instantiates its class. The
subroutine/runmode is called. Twice.
Do any obvious causes occur to anyone?
Many thanks
Kropotkin
--
View this message in context:
http
as was the suggestion to look in the access
logs to see if the script was being called twice.
Thanks to both
Michael Peters wrote:
kropotkin wrote:
I have a form post to a url. The 'runmode' is passed as a form field. The
'instance script' is called and it instantiates its class
Hi
I have a run mode. I call it with a GET. It returns its output which is html
from a template. The template contains a form with the method attribute set
to POST like so: form action=/cart/register/ method=post name=main.
But the ENV(REQUEST_METHOD) is set to GET when the form is POSTED. I
Hi
How do I access the CGI.pm method request_method() in CGI::Application?
Thanks
Kropotkin
--
View this message in context:
http://www.nabble.com/Accessing-CGI.pm-methods-tp21726427p21726427.html
Sent from the cgiapp@lists.erlbaum.net mailing list archive at Nabble.com.
# CGI
Hi
How do I stop C:A outputting a template from a run-mode? This is for a
method which serves an AJAX call.
Thanks
Kropotkin
--
View this message in context:
http://www.nabble.com/Turning-off-Template-output-for-AJAX-tp21726620p21726620.html
Sent from the cgiapp@lists.erlbaum.net mailing
Michael Peters wrote:
kropotkin wrote:
How do I stop C:A outputting a template from a run-mode? This is for a
method which serves an AJAX call.
C::A doesn't output a template by default. You must have some other plugin
loaded that does that.
Besides, what does an AJAX call have to do
;
return$self-json_body({text = 'test', fail = (my $filefail ?
'fail' : 'ok')});
Thanks
Kropotkin
--
View this message in context:
http://www.nabble.com/add_callback-problem-when-using-Plugin%3A%3AJSON-tp21728780p21728780.html
Sent from the cgiapp@lists.erlbaum.net mailing list archive
Thanks. I was looking for $self-cgi
Michael Peters wrote:
Justin Wyllie wrote:
How do I access CGI.pm methods like request_method() from my
CGI::Application?
$self-query returns a CGI object. So just say
$self-query-request_method.
--
Michael Peters
Plus Three, LP
#
Hi Michael
I am. my Class inherits from CGI::Application. All the other
CGI::Application methods work. Your answer feels right but my class really
is based on CGI::Application.
Any other ideas?
Kropotkin
Michael Peters wrote:
kropotkin wrote:
't locate object method add_callback via
lol
Alright. I take the point that it is consistent design wise - but I am
outputting JSON so a template isn't really necessary in this case.
But does the C:A JSON plugin require me to be using a template?
Thanks
Kropotkin
P Kishor-3 wrote:
On 1/29/09, kropotkin enquir...@mms-oxford.com
Hi Michael
I didn't show you the real code because I didn't have a clue where the error
was and I didn't want to paste the whole file.
But your answer was an inspired guess. Thanks very much
regards
Kropotkin
Michael Peters wrote:
kropotkin wrote:
I am. my Class inherits from CGI
, Jan 29, 2009 at 10:06 AM, kropotkin
enquir...@mms-oxford.comwrote:
lol
Alright. I take the point that it is consistent design wise - but I am
outputting JSON so a template isn't really necessary in this case.
But does the C:A JSON plugin require me to be using a template?
Thanks
12 matches
Mail list logo