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

2006-10-19 Thread Bruce McKenzie
RA Jones wrote: Having at last had some success with something AJAX-based (the demo described in perl.com 'Using Ajax from Perl'), I now want to try and use AJAX in my web apps. It looks like the necessary modules are CGI::Ajax CAP::HTMLPrototype. Well, in my experience, both CGI::Ajax

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

2006-10-19 Thread David Emery
On Date: Thu, 19 Oct 2006 09:26:33 -0400, Bruce McKenzie [EMAIL PROTECTED] wrote: RA Jones wrote: Having at last had some success with something AJAX-based (the demo described in perl.com 'Using Ajax from Perl'), I now want to try and use AJAX in my web apps. It looks like the necessary

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

2006-10-19 Thread Michael Peters
RA Jones wrote: Is it possible to implement AJAX without learning javascript? Are there any resources I could use to get going with CGI::Application? Finally has the CAP::Ajax project has been abandoned? AJAX commonly stands for Asynchronous Javascript and XML. Asynchronous isn't always

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

2006-10-19 Thread RA Jones
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 from you, but sooner or later you're gonna have to get your

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

2006-10-19 Thread Michael Peters
RA Jones wrote: Exactly what I feared, but fully appreciate the analogy. I've had a quick look at prototype.js and also jQuery and its tutorial, but it all seems very mysterious, and not at all clear how it can be integrated into a CGI::App. In reality, there's almost no integration

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

[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

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

2006-10-19 Thread RA Jones
Michael Peters wrote: After the client receives the info from the server it needs to process it. Using the same cases above: A) JS usually takes that partial document and injects it into the current page (in prototype this is done with Element.update). B) Parse the XML and 1 - extra data

[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 =

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

2006-10-19 Thread Mike Friedman
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 as a method to be called on

[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 as a

[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/

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

2006-10-19 Thread Sam Tregar
On Thu, 19 Oct 2006, Robert Hicks wrote: Maybe someone with experience could update the CA site with an example or two of doing this with CA? You could just include a link to CGI::Application::Search - it has a couple AJAX features which should be easy to follow. -sam

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

2006-10-19 Thread Cees Hek
On 10/20/06, RA Jones [EMAIL PROTECTED] wrote: A sense of deja vu here from many years ago when encountering Perl for the first time! It only really began to make sense when I was able to take a working example and de-construct it line-by-line in my own working environment, and I think the same

[cgiapp] CGI::Application article published on Perl.com

2006-10-19 Thread Mark Stosberg
A new CGI::Application article has been published on Perl.com today: http://www.perl.com/pub/a/2006/10/19/cgi_application.html Thanks to all of you who contributed plugins used in the article! ( If anything feels a bit dated, the original draft process started almost a year ago it seems. )

Re: [cgiapp] CGI::Application article published on Perl.com

2006-10-19 Thread Cees Hek
On 10/20/06, Mark Stosberg [EMAIL PROTECTED] wrote: A new CGI::Application article has been published on Perl.com today: http://www.perl.com/pub/a/2006/10/19/cgi_application.html Thanks to all of you who contributed plugins used in the article! Excellent article Mark. Reads very well, and

[cgiapp] CGI::Application::Dispatch and fatalsToBrowser

2006-10-19 Thread Evan A. Zacks
Hello folks, Has anyone else had problems using CGI::Carp's 'fatalsToBrowser' along with CGI::Application::Dispatch? Dispatch wraps the CGI::Application run in an eval. When an exception is caught, the http_error() method is called, which generates HTML output for an error page (and redirects