[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 Ron Savage
On Tue, 18 Oct 2005 23:55:15 -0700, Tim Colson \(tcolson\) wrote: Hi Tim Of course, you could always try CGI::Explorer: http://search.cpan.org/~rsavage/CGI-Explorer-2.05/ -- Cheers Ron Savage, [EMAIL PROTECTED] on 19/10/2005 http://savage.net.au/index.html Let the record show: Microsoft is not

Re: [cgiapp] Ajax?

2005-10-19 Thread Ron Mahoney
On Tue, Oct 18, 2005 at 11:55:15PM -0700, Tim Colson (tcolson) wrote: 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) ?

[cgiapp] Navigation Templates and Run Mode

2005-10-19 Thread Brett Sanger
Here's a minor nit that's been bugging me for a while. On many applications I have an app navigation to switch between modes. I found my designer was repeating entire templates because he wanted to distinguish the mode you were in (highlight, bold, whatever). After thwaping him and teaching him

RE: [cgiapp] Ajax?

2005-10-19 Thread Jesse Erlbaum
Hey Tim -- 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) ? I'm sure a few other people will email you examples of AJAX implementations. I just wanted to make one

Re: [cgiapp] Ajax?

2005-10-19 Thread Michael Peters
Jesse Erlbaum wrote: Hey Tim -- 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) ? I'm sure a few other people will email you examples of AJAX implementations. I

Re: [cgiapp] Navigation Templates and Run Mode

2005-10-19 Thread B10m
* Brett Sanger [EMAIL PROTECTED] [2005-10-19 15:04:42-0400] [Highlighting runmode navigation in template] So I tried to move to include a Nav template. For that to work, however, I need to make my run_mode visible to my template, which bugs me in some way. The template shouldn't care. But

RE: [cgiapp] Ajax?

2005-10-19 Thread Barry Moore
Well, I'm not writing from experience since I have yet to find the time to play with it, but Cees Hek's plugin for the HTML::Prototype library ( CGI::Application::Plugin::HTMLPrototype) supplies a JavaScript library for doing Ajax stuff like autocomplete and plenty more. Don't know if you could

RE: [cgiapp] Ajax?

2005-10-19 Thread Jesse Erlbaum
I completely agree. I wonder how hard this AJAX transition will be for frameworks that rely on page-style sites. I can see it now: A separate file for every function, and they will love it. (To be fair, in Java that will be three separate files for every function, plus a big honkin' EJB

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

RE: [cgiapp] Ajax?

2005-10-19 Thread Ron Savage
On Wed, 19 Oct 2005 16:18:55 -0400, Jesse Erlbaum wrote: Hi Jesse Your Javascript would make an HTTP request on timeout (for example, when the user stops typing for a couple seconds). That request would be internal, and would get back a line-delimited list of options, which would then be

Re: [cgiapp] Navigation Templates and Run Mode

2005-10-19 Thread Mark Fuller
From: B10m [EMAIL PROTECTED] * Brett Sanger [EMAIL PROTECTED] [2005-10-19 15:04:42-0400] [Highlighting runmode navigation in template] So I tried to move to include a Nav template. For that to work, however, I need to make my run_mode visible to my template, which bugs me in some way.

Re: [cgiapp] Ajax?

2005-10-19 Thread Mark Fuller
From: Ron Savage [EMAIL PROTECTED] I don't use timeout, I send every char back to a Perl module (RPC.pm), which connects to the db, and then does: Isn't that a lot of resources for each character without *any* timeout? If it's not running in mod_perl (or one of the persistent perl environments)

Re: [cgiapp] Ajax?

2005-10-19 Thread Rhesa Rozendaal
Ron Savage wrote: (This Perl is from my Database.pm): # --- sub find_entity_via_keystrokes { my($self, $prefix) = @_; my($sql) = select entity_id, entity_name from entity where entity_name_key like lower('$prefix%') order by

Re: [cgiapp] Ajax?

2005-10-19 Thread Mark Fuller
From: Ron Savage [EMAIL PROTECTED] I don't use timeout, I send every char back to a Perl module (RPC.pm), which connects to the db, and then does: Ron, since AJAX is asynchronous, what are the risks that typing savag would result in 6 search results arriving back to the client out of order?

Re: [cgiapp] Ajax?

2005-10-19 Thread Ron Savage
On Thu, 20 Oct 2005 03:46:43 +0200, Rhesa Rozendaal wrote: Hi Rhesa I do hope you're in a tightly controlled environment, or that you're properly untainting and detoxifying $prefix. I'd suggest I should give a fuller answer to this, so... For beginners not familiar with what this detoxifying

Re: [cgiapp] Ajax?

2005-10-19 Thread Ron Savage
On Thu, 20 Oct 2005 03:46:43 +0200, Rhesa Rozendaal wrote: Hi Rhesa Isn't your like case-insensitive? I guess that might depend on the database engine. Under MySQL yes, but the code (also) runs primarily under Postgres. -- Cheers Ron Savage, [EMAIL PROTECTED] on 20/10/2005

Re: [cgiapp] Ajax?

2005-10-19 Thread Ron Savage
On Wed, 19 Oct 2005 19:35:07 -0700, Mark Fuller wrote: Hi Mark Ron, since AJAX is asynchronous, what are the risks that typing savag would result in 6 search results arriving back to the client out of order? (Maybe a search request reaches the server Well, yes, that may be possible. In

Re: [cgiapp] Ajax?

2005-10-19 Thread Ron Savage
On Wed, 19 Oct 2005 18:38:12 -0700, Mark Fuller wrote: Hi Mark Again, a fuller answer. I could see this as acceptable within an *intra*net (for an application with a known/limited number of users). Is that something you'd want to do for a public web site? It's on an intranet, with only ever