[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

[cgiapp] Ajax

2006-12-28 Thread Stewart Heckenberg
G'day, My first post to this list :) I'm aware of the HTMLPrototype plugin that uses the Prototype Javascript library, however has anyone tried developing a plugin based on CGI::Ajax or that doesn't rely upon particular libraries? I don't know what the Ajax plugin linked-to via the cgiapp site

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] 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

[cgiapp] Turning off Template output for AJAX

2009-01-29 Thread kropotkin
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

Re: [cgiapp] Turning off Template output for AJAX

2009-01-29 Thread Michael Peters
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 with not using a template

Re: [cgiapp] Ajax and JSON recipe

2009-04-11 Thread Ron Savage
Hi Lyle I've written a new module, CGI::Application::Demo::Ajax, which is a small search engine to retrieve records via Ajax and Json. I'll document it next and release it to CPAN. -- Ron Savage r...@savage.net.au http://savage.net.au/index.html # CGI::Application community mailing list

Re: [cgiapp] Turning off Template output for AJAX

2009-01-29 Thread Michael Peters
kropotkin wrote: I see - yes; I found the place in postrun where we are loading the layout template and I just turn it off. I suppose you could use a template for AJAX but since the body is no more than the AJAX response text I'm not sure I can see the point It depends on how complicated

Re: [cgiapp] Authentication for AJAX?

2016-05-18 Thread jerry
On 05/18/2016 06:17, Brad Van Sickle wrote: > I might be misunderstanding your problem... but why can't you use the > CGI::App framework for this? An AJAX request is still a request after > all. *** An interesting thought. Instead of having lots of separate AJAX server-side files, I w

[cgiapp] Authentication for AJAX?

2016-05-17 Thread jerry
Hello All, I have been using CGI::Application to run my homebrew LAMP tools for several years. Now, I am starting to move away from a pure CGI environment to a bit of AJAX. But I don't want to abandon CGIAPP - I have a large investment in server-side code that uses it. Getting

[cgiapp] CA and AJAX

2008-01-29 Thread Robert Hicks
I am looking at the Ext Js 2.0 AJAX framework and it looks really good (I also like jQuery). Is anybody working on an easy way to call Ext stuff from Perl through CA? Robert # CGI::Application community mailing list

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] 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] 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-20 Thread RA Jones
Cees Hek wrote: I did a talk on AJAX and perl at YAPC Chicago [1] this year. The slides for most of the talks are online [2], and I added links to my slides [3] and source code [4]. Hi Cees, thanks I have downloaded the source code and am working my way through the files. I cannot see any

[cgiapp] Ajax and JSON recipe

2009-04-09 Thread Lyle Brooks
I have a need to incorporate Ajax calls with JSON data into our application. I was looking for something in terms of a piece of starter code or a recipe. I didn't see anything on the website related to it. CGI Application seems like such a robust framework, that this should be a natural fit

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) ? http://search.cpan.org/~bct/CGI-Ajax-0.6/lib/CGI

Re: [cgiapp] Ajax

2006-12-30 Thread Stewart Heckenberg
I've been using CGI::Ajax with CGI::Application, and I'm curious to know what you have in mind. At the moment I don't have a grasp of what the plugin would bring to the table. Perhaps you could elaborate? Well I was thinking of just making using CGI::Ajax via CGI::Application more

Re: [cgiapp] Ajax app using CAP -- return JSON or HTML?

2008-05-24 Thread Stewart Heckenberg
? (BTW, I'm not considering XML.) Depends mostly on what the application you're writing does. One way of doing it is to write the whole thing sans-ajax, e.g. have a runmode that returns only a form and another that returns only the results of that form, and then you can easily convert that to ajax

[cgiapp] RFC: CGI::Application::Plugin::AJAX v0.02

2005-07-02 Thread Paul Campbell
I'm interested in any feedback anyone might have for this module. More information: http://kemitix.net/bitware/2005/07/02/cgiapplicationpluginajax-v002/ Download the code, including demo: http://kemitix.net/files/cgiapp/CGI-Application-Plugin-AJAX-0.02.tar.gz ### The buzzword of the moment

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] 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] Turning off Template output for AJAX

2009-01-29 Thread P Kishor
On 1/29/09, kropotkin enquir...@mms-oxford.com wrote: Hi I see - yes; I found the place in postrun where we are loading the layout template and I just turn it off. I suppose you could use a template for AJAX but since the body is no more than the AJAX response text I'm not sure I can

[cgiapp] simple example of CA, jQuery, Ajax added to wiki

2009-07-24 Thread Mark Rajcok
I had on my todo list (for over a year) to add to the CA wiki a simple example of using jQuery to make Ajax requests back to the server using a CA backend. I finally wrote the 62 lines of code: http://cgiapp.erlbaum.net/index.cgi?AjaxInfo # CGI::Application community mailing list

[cgiapp] Re: More AJAX Stuff with HTML::Prototype

2005-07-08 Thread Mark Stosberg
On 2005-07-07, Michael Peters [EMAIL PROTECTED] wrote: Would it be possible to combine this with the CAP::Ajax plugin? The 'Prototype' doesn't really fit. I severly doubt anyone looking for AJAX helpers would look for it or know that they need to look at it. I think there is an important

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

Re: [cgiapp] Test 2 - is this thing on?

2006-11-08 Thread RA Jones
Ron Savage wrote: On Wed, 08 Nov 2006 20:43:36 +, RA Jones wrote: Hi Well, I could throw in a couple of (slightly off-topic) AJAX questions if anyone cares to field them, or have we had enough of that topic recently? Throw them in (aka I'm bored...)! That's what I wanted to hear

RE: [cgiapp] Ajax

2006-12-30 Thread Dan Horne
From: Stewart Heckenberg Sent: Saturday, 30 December 2006 10:22 p.m. I've been using CGI::Ajax with CGI::Application, and I'm curious to know what you have in mind. At the moment I don't have a grasp of what the plugin would bring to the table. Perhaps you could elaborate? Well I

Re: [cgiapp] Turning off Template output for AJAX

2009-01-29 Thread kropotkin
Hi I see - yes; I found the place in postrun where we are loading the layout template and I just turn it off. I suppose you could use a template for AJAX but since the body is no more than the AJAX response text I'm not sure I can see the point Thanks for the helpful response Kroptokin

Re: [cgiapp] Ajax and JSON recipe

2009-04-11 Thread Ron Savage
Hi Folks On Thu, 2009-04-09 at 10:20 -0500, P Kishor wrote: On Thu, Apr 9, 2009 at 9:53 AM, Lyle Brooks bro...@deseret.com wrote: I have a need to incorporate Ajax calls with JSON data into our application. I was looking for something in terms of a piece of starter code or a recipe. I

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

2006-10-19 Thread RA Jones
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 will apply to AJAX. A working example of a simple web app built around CGI::Application using AJAX would be most helpful. Maybe if you tell

Re: [cgiapp] Turning off Template output for AJAX

2009-01-29 Thread kropotkin
wrote: Hi I see - yes; I found the place in postrun where we are loading the layout template and I just turn it off. I suppose you could use a template for AJAX but since the body is no more than the AJAX response text I'm not sure I can see the point timtowdi, but, imo, using

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] CA and AJAX

2008-01-29 Thread Michael Peters
Robert Hicks wrote: I am looking at the Ext Js 2.0 AJAX framework and it looks really good (I also like jQuery). Is anybody working on an easy way to call Ext stuff from Perl through CA? Ajax stuff is fun to do, but it's really no different from normal web work, at least from a C

Re: [cgiapp] Turning off Template output for AJAX

2009-01-29 Thread kropotkin
Hi fRew I went for a simple solution. Our template is added in the postrun filter. I set a property of the object to be 'ajax' rather than 'browser' in the class and in post_run I just bail out if this property is 'ajax', not outputting a template Thanks Justin Frew Schmidt wrote: On Thu

Re: [cgiapp] Ajax and JSON recipe

2009-04-09 Thread P Kishor
On Thu, Apr 9, 2009 at 9:53 AM, Lyle Brooks bro...@deseret.com wrote: I have a need to incorporate Ajax calls with JSON data into our application.  I was looking for something in terms of a piece of starter code or a recipe.  I didn't see anything on the website related to it. CGI

Re: [cgiapp] Simple Implementation of Ajax.pm

2005-12-17 Thread Ron Savage
On Sat, 17 Dec 2005 14:48:37 -0500, Bruce McKenzie wrote: Hi Bruce There was a thread here in October with a request for an example of a simple implementation of CGI::App and Ajax. But then it went on and got a little too complicated -- at least I don't see any Yes, that's a pity. I suggest

Re: [cgiapp] Simple Implementation of Ajax.pm

2005-12-17 Thread Bruce McKenzie
Thanks Fred -- that looks straightforward enough. However, the reason I'm attracted to CGI::Ajax (formerly Perljax) is that (as I understand the dox) you can do Ajax without knowing Javascript or XML :-) The module is quite new, so if I manage to figure this out, maybe I'll post my solution

Re: [cgiapp] Re: Run modes and Ajax.pm

2006-03-08 Thread Jonathan Mangin
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

Re: [cgiapp] Re: CGI::App CGI:Ajax nearly working - please help with last bit

2006-10-24 Thread RA Jones
-sum as the 10th digit. The whole application is delivered using CGI::Application and Template via the CAP::AnyTemplate plugin, and I think some of the problems I had involved header conflict issues between CGI::Ajax CGI::Application (and some stupidity!), so the code below might require

Re: [cgiapp] Returning multiple values with CGI::Ajax

2006-11-28 Thread Jonathan Mangin
- 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

Re: [cgiapp] Streaming Status Updates for a Long-running Run Mode

2009-10-07 Thread Michael Peters
queue that can run these processes and keep their status in a shared location (like a DB, etc). Then your rm just adds a job to the queue and returns. Then when you're checking on the status via Ajax you need to have another rm that simply checks on the status of the job and returns a flag

Re: [cgiapp] More AJAX Stuff with HTML::Prototype

2005-07-07 Thread Michael Peters
Cees Hek wrote: With the new AJAX kick that everyone seems to be on (including me that is), I did a little bit of playing with the HTML::Prototype library which is a perl interface to the prototype.js library. This is the library that Ruby On Rails uses for all of the fancy AJAX stuff

Re: [cgiapp] More AJAX Stuff with HTML::Prototype

2005-07-07 Thread Cees Hek
On 7/7/05, Michael Peters [EMAIL PROTECTED] wrote: Would it be possible to combine this with the CAP::Ajax plugin? The 'Prototype' doesn't really fit. I severly doubt anyone looking for AJAX helpers would look for it or know that they need to look at it. To be honest, I haven't had a look

Re: [cgiapp] Simple Implementation of Ajax.pm

2005-12-17 Thread Bill Stephenson
On Dec 17, 2005, at 1:48 PM, Bruce McKenzie wrote: There was a thread here in October with a request for an example of a simple implementation of CGI::App and Ajax. But then it went on and got a little too complicated -- at least I don't see any implementations simple enough for my skills

Re: [cgiapp] Re: More AJAX Stuff with HTML::Prototype

2005-07-08 Thread Cees Hek
On 7/8/05, Mark Stosberg [EMAIL PROTECTED] wrote: On 2005-07-07, Michael Peters [EMAIL PROTECTED] wrote: Would it be possible to combine this with the CAP::Ajax plugin? The 'Prototype' doesn't really fit. I severly doubt anyone looking for AJAX helpers would look for it or know

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] Simple Implementation of Ajax.pm

2005-12-17 Thread Bruce McKenzie
that the changes were processed by the script without redrawing the page. I think this probably isn't difficult, but I can't seem to sort out who does what, when and where. Here's what I tried: # run mode in WebApp.pm sub display_test_form { my $self = shift; use CGI::Ajax; my $url

Re: [cgiapp] Ajax

2006-10-12 Thread Sean Davis
On Thursday 12 October 2006 09:01, Robert Hicks wrote: I know this is sad. What is the term I should be looking for when I want to bring back only the associated records with a drop down selection? I assume you mean What AJAX command do I use?. That depends on the javascript framework you

[cgiapp] Re: Ajax

2006-10-12 Thread Robert Hicks
Sean Davis wrote: On Thursday 12 October 2006 09:01, Robert Hicks wrote: I know this is sad. What is the term I should be looking for when I want to bring back only the associated records with a drop down selection? I assume you mean What AJAX command do I use?. That depends

Re: [cgiapp] Returning XML output for AJAX

2007-01-29 Thread Michael Peters
XML::Tiny that is supposed to be much smaller, use less memory and just use core modules. It might be worth checking out. But these days I actually use mostly JSON to send data to Ajax applications. Much faster and much easier imo. -- Michael Peters Developer Plus Three, LP

[cgiapp] More AJAX Stuff with HTML::Prototype

2005-07-07 Thread Cees Hek
With the new AJAX kick that everyone seems to be on (including me that is), I did a little bit of playing with the HTML::Prototype library which is a perl interface to the prototype.js library. This is the library that Ruby On Rails uses for all of the fancy AJAX stuff that they have been hyping

Re: [cgiapp] Re: Long running modes - how to display please wait?

2006-05-25 Thread Timothy Appnel
Has anyone tried using AJAX/JSON in a scenario like this? tim/ -- Timothy Appnel Appnel Solutions http://www.appnel.com/ - Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/ http

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

2006-10-19 Thread Michael Peters
necessary. AJAX requests from the browser are identical to normal requests. But they usually do something different with that data. For instance, a normal form submission will send the info the server and the server will return a full HTML document. A form submitted with an AJAX request will send

[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] Returning XML output for AJAX

2007-01-30 Thread David Kaufman
Hi Bruce, Bruce McKenzie [EMAIL PROTECTED] wrote: What I want to do is return XML (as an Ajax response) to the jQuery Interface library Autocomplete plugin [...] Of the modules on CPAN that could produce this XML structure, which would be *easiest* to use? Do I need to change the headers

Re: [cgiapp] Streaming Status Updates for a Long-running Run Mode

2009-10-07 Thread Michael Peters
something as simple as Unix at for a simple queue would be better. On a related note, is there a way to have cgiapp send content back to the client during the processing of a run mode instead of at the end when the rm returns? No, not for Ajax. And it's not a limitation of cgiapp, but of HTTP/Ajax

Re: [cgiapp] Test 2 - is this thing on?

2006-11-09 Thread Michael Peters
RA Jones wrote: Ron Savage wrote: On Wed, 08 Nov 2006 20:43:36 +, RA Jones wrote: Hi Well, I could throw in a couple of (slightly off-topic) AJAX questions if anyone cares to field them, or have we had enough of that topic recently? Throw them in (aka I'm bored...)! That's what

Re: [cgiapp] Re: Help with CGI::Application::Plugin::HTMLPrototype

2006-05-21 Thread Cees Hek
On 5/21/06, Dan Horne [EMAIL PROTECTED] wrote: From: Cees Hek [mailto:[EMAIL PROTECTED] http://cees.crtconsulting.ca/perl/examples/podviewer/ That's nice, Cees. As with many people, my interest in Ajax has been aroused with all of the press it has been receiving, buI've never been clear

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

2006-10-19 Thread Cees Hek
will apply to AJAX. A working example of a simple web app built around CGI::Application using AJAX would be most helpful. I did a talk on AJAX and perl at YAPC Chicago [1] this year. The slides for most of the talks are online [2], and I added links to my slides [3] and source code [4

Re: [cgiapp] CA and AJAX

2008-01-29 Thread Ben Hitz
to escape $ in TT2 so that it appears as $(variable) in javascript. Ben On Jan 29, 2008, at 6:29 AM, Michael Peters wrote: Robert Hicks wrote: I am looking at the Ext Js 2.0 AJAX framework and it looks really good (I also like jQuery). Is anybody working on an easy way to call Ext stuff from

Re: [cgiapp] Ajax and JSON recipe

2009-04-11 Thread Bruce McKenzie
...@deseret.com wrote: I have a need to incorporate Ajax calls with JSON data into our application. I was looking for something in terms of a piece of starter code or a recipe. I didn't see anything on the website related to it. CGI Application seems like such a robust framework

Re: [cgiapp] XMLHTTPRequest / Remote Scripting / AJAX

2005-03-10 Thread Jason Purdy
? - use WWW::AJAX::Simple; my $app = WWW::AJAX::Simple-new(); $app-expose_function( 'multiply' ); $app-run(); - That was my initial take, but having it as a Plugin sounds tastier

Re: [cgiapp] More AJAX Stuff with HTML::Prototype

2005-07-07 Thread Paul Campbell
On 07/07/05, Cees Hek [EMAIL PROTECTED] wrote: On 7/7/05, Michael Peters [EMAIL PROTECTED] wrote: Would it be possible to combine this with the CAP::Ajax plugin? The 'Prototype' doesn't really fit. I severly doubt anyone looking for AJAX helpers would look for it or know that they need

Re: [cgiapp] Re: AJAXifying of C::A::Search

2005-11-12 Thread Michael Peters
on sites that have some dynamic stuff happening in navs and sidebars. I'd like this worked, and fell back to the current way if the browser is detected not to be able to handle the AJAX. This should be just a simple Javascript test before using the Ajax facilities of the Prototype

Re: [cgiapp] Returning multiple values with CGI::Ajax

2006-11-24 Thread Jonathan Mangin
- 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

RE: [cgiapp] XMLHTTPRequest / Remote Scripting / AJAX

2005-03-10 Thread Kleindenst, Fred
Very Fine Work. Thanks for contributing this to the community. Cheers --Fred -Original Message- From: Steve Comrie [mailto:[EMAIL PROTECTED] Sent: Thursday, March 10, 2005 10:54 AM To: cgiapp@lists.erlbaum.net Subject: [cgiapp] XMLHTTPRequest / Remote Scripting / AJAX Good

Re: [cgiapp] XMLHTTPRequest / Remote Scripting / AJAX

2005-03-10 Thread Thilo Planz
Hi all, If you haven't heard of XMLHTTPReqeust aka Remote Scripting aka AJAX it's basically a way for web pages to communicate with the server and return information through JavaScript without having to refresh the page. For those interested in using JavaScript to update parts of the page

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

Re: [cgiapp] Simple Implementation of Ajax.pm

2005-12-18 Thread Bruce McKenzie
Here is a simple implementation of a form created with CGI::Appication, Template-Toolkit, and CGI::Ajax that will process changed fields without submitting and re-drawing the form. Thanks to all for your help. Cheers, Bruce webapp pl ## #!/usr/bin/perl use WebApp; my

RE: [cgiapp] Re: Help with CGI::Application::Plugin::HTMLPrototype

2006-05-21 Thread Dan Horne
://cees.crtconsulting.ca/perl/examples/podviewer/ That's nice, Cees. As with many people, my interest in Ajax has been aroused with all of the press it has been receiving, buI've never been clear about the best way to start (Should I use Prototype, or CGI::Ajax? How do I integrate with CGI::App? How much

[cgiapp] Re: In the scope of CGI::APP?

2006-10-10 Thread Robert Hicks
it not. ; ) Javascript is the cool way of doing it and does not necessarily require a round-trip to the server, but could (and if it were done, this is what people commonly call AJAX). The other way is to use an onChange attribute of the first combo box to submit the form back to the server

Re: [cgiapp] Re: Ajax

2006-10-12 Thread Michael Peters
is the biggest one) but they aren't centralized and sometimes hard to find. Dojo is another popular alternative that seems to be more modular and have a more centralized community. But either way, if you're going to get into Ajax, don't be scared of Javascript. Any wrappers that exist (like HTML

Re: [cgiapp] Re: Ajax

2006-10-12 Thread Sean Davis
On Thursday 12 October 2006 10:33, Michael Peters wrote: Robert Hicks wrote: It will probably be prototype since there is a CA plugin for it. Do you have a recommendation? But either way, if you're going to get into Ajax, don't be scared of Javascript. Any wrappers that exist (like HTML

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] CGI::App CGI:Ajax nearly working - please help with last bit

2006-10-21 Thread RA Jones
Jonathan Mangin wrote: Well, just to finish the story... I needed to register the subs this way. They also need to be defined as run_modes in setup. my $activity_url = 'fitness.pl?rm=getActivity'; my $daily_url = 'fitness.pl?rm=dispDaily'; my $pjx = new CGI::Ajax('getActivity

[cgiapp] Returning XML output for AJAX

2007-01-27 Thread Bruce McKenzie
OK, so I'm way behind the rest of the world when it comes to XML -- but I am using CGI::Application -- so how hard could it be to catch up? :-) What I want to do is return XML (as an Ajax response) to the jQuery Interface library Autocomplete plugin. In the plugin documentation example, data

Re: [cgiapp] Returning XML output for AJAX

2007-01-29 Thread Rhesa Rozendaal
, but as far as I can tell, it's only a parser, and it doesn't emit XML. For reading XML it might very well be a more light-weight alternative. But these days I actually use mostly JSON to send data to Ajax applications. Much faster and much easier imo. I have to agree with that. It takes less

[cgiapp] Re: Returning XML output for AJAX

2007-01-29 Thread Robert Hicks
Bruce McKenzie wrote: OK, so I'm way behind the rest of the world when it comes to XML -- but I am using CGI::Application -- so how hard could it be to catch up? :-) What I want to do is return XML (as an Ajax response) to the jQuery Interface library Autocomplete plugin. In the plugin

[cgiapp] Re: Returning XML output for AJAX

2007-02-04 Thread Robert Hicks
heard about the new XML::Tiny that is supposed to be much smaller, use less memory and just use core modules. It might be worth checking out. But these days I actually use mostly JSON to send data to Ajax applications. Much faster and much easier imo. I have read a few posts lately about XML

[cgiapp] Re: Dispatching both 'login' and 'login/*' to the same app?

2009-02-24 Thread Clayton Scott
I could do:     My::Dispatcher-dispatch(     prefix  = 'My::App::Dashboard',     table   = [     qr|/|   = { app = 'Home' },     qr|/login|   = { app = 'Login::Ajax' },     ],     ); Clayton

[cgiapp] Re: XMLHTTPRequest / Remote Scripting / AJAX

2005-03-12 Thread Mark Stosberg
On 2005-03-10, Steve Comrie [EMAIL PROTECTED] wrote: That URL again is: http://www.unobserved.org/misc/rs/ Thanks for sharing this. It seems to have brought my computer to crawl, though. After loading it, the CPU went to 100%, 99% of which was being used by Firefox. Coincidence? Mark

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 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] CGI::App CGI:Ajax nearly working - please help with last bit

2006-10-21 Thread Ron Savage
On Sat, 21 Oct 2006 21:04:22 +0100, RA Jones wrote: Hi Richard Predictably, and disappointingly: Content-Type: text/html; charset=ISO-8859-1 Fred I see this in the docs for CGI::Ajax: -8- We have added Isupport for other CGI handler/decoder modules,like LCGI::Simple or LCGI::Minimal

Re: [cgiapp] Test 2 - is this thing on?

2006-11-08 Thread RA Jones
[EMAIL PROTECTED] wrote: Is this list still active, or has my workplace started to filter this... Well, I could throw in a couple of (slightly off-topic) AJAX questions if anyone cares to field them, or have we had enough of that topic recently? -- Richard Jones Leeds, UK mailto:[EMAIL

[cgiapp] Header type

2006-11-09 Thread Bruce McKenzie
This question would actually sort of fit into the Ajax thread which is under the subject Test 2 - is this thing on :-) Anyway, should I be changing the header type when returning JSON or something other than HTML from CAP? Thx, Bruce -- http://www.2MinuteExplainer.com

[cgiapp] When would you not use CA

2007-01-23 Thread Robert Hicks
I am being contracted for a small site for a friend. It is maybe 5-7 pages and probably 1 form and some AJAX sprinkled in. While I really love CA (I use it at work) I am wondering if this is too small to use Perl/CGI/CA for? Thoughts? Robert

RE: [cgiapp] Re: Returning XML output for AJAX

2007-02-05 Thread John Saylor
hi From: news [mailto:[EMAIL PROTECTED] On Behalf Of Robert Hicks I have read a few posts lately about XML::Simple and you do not want to use it for large amounts of data. for any big XML stuff with more than one programmer, i'd head toward XML::LibXML, faster with excellent DOM support. --

[cgiapp] Testing Methods

2009-05-18 Thread Mike Tonks
Hi All, Can anyone recommend a method or point me to some examples for testing CGI::App run modes? Our app is getting ever more complex and could really do with some automated tests. I'm able to build tests against the MCV 'model' classes, but not the controllers or views (never mind the ajax

RE: [cgiapp] XMLHTTPRequest / Remote Scripting / AJAX

2005-03-10 Thread Brian Cassidy
Hi Steve, -Original Message- If you haven't heard of XMLHTTPReqeust aka Remote Scripting aka AJAX it's basically a way for web pages to communicate with the server and return information through JavaScript without having to refresh the page. Very cool stuff indeed. I converted

[cgiapp] AJAXifying of C::A::Search

2005-11-09 Thread Michael Peters
Hello all, I'm in the process of adding some AJAX sugar to C::A::Search and wanted to throw out my initial ideas and also see what others would like to have as well. I'm planning on adding the following: + No page reload for results. After pressing the 'submit' button (or one of the page links

[cgiapp] Re: AJAXifying of C::A::Search

2005-11-11 Thread Mark Stosberg
some dynamic stuff happening in navs and sidebars. I'd like this worked, and fell back to the current way if the browser is detected not to be able to handle the AJAX. + Auto-Complete/Suggest search field. As the user types they will see suggestions of what to search for (similar to Google

Re: [cgiapp] Re: In the scope of CGI::APP?

2006-10-10 Thread Barry Moore
Then do have a look at HTML::Prototype. Prototype is a great JS library that has many AJAX type functions. HTML::Prototype is a perl wrapper for that library. There is also CGI::Application::Plugin::HTMLPrototype. Barry On Oct 10, 2006, at 6:02 PM, Robert Hicks wrote: Sean Davis

Re: [cgiapp] Re: CGI::App CGI:Ajax nearly working - please help with last bit

2006-10-23 Thread RA Jones
Michael Peters wrote: Not to add too much to your plate, but you'll also need to use a browser that has decent debugging tools. I prefer firefox, but some people pay for visual studio and use IE. With Firefox, my Ajax debugging goes something like this: If it's not doing anything, then open up

[cgiapp] Ajax app using CAP -- return JSON or HTML?

2008-05-24 Thread Mark Rajcok
I'm writing a new CGI app, and decided to go web 2.0 -- i.e., use Ajax to update parts of the page, trying to never load an entirely new page. I'm at a crossroad: should the CAP-based back-end normally return JSON data (and let the javascript library (I've decided on jQuery) place and format

Re: [cgiapp] Ajax and JSON recipe

2009-04-11 Thread fREW Schmidt
I have a need to incorporate Ajax calls with JSON data into our application. I was looking for something in terms of a piece of starter code or a recipe. I didn't see anything on the website related to it. CGI Application seems like such a robust framework, that this should be a natural

Re: [cgiapp] Streaming Status Updates for a Long-running Run Mode

2009-10-07 Thread eric.berg
and I'll have to wait until I get our IT crew to understand and help with the email problem. (don't ask) On a related note, is there a way to have cgiapp send content back to the client during the processing of a run mode instead of at the end when the rm returns? No, not for Ajax

Re: [cgiapp] Re: CGI::App CGI:Ajax nearly working - please help with last bit

2006-10-23 Thread Michael Peters
. Not the element you're validating. Not to add too much to your plate, but you'll also need to use a browser that has decent debugging tools. I prefer firefox, but some people pay for visual studio and use IE. With Firefox, my Ajax debugging goes something like this: If it's not doing anything

Re: [cgiapp] Test 2 - is this thing on?

2006-11-09 Thread RA Jones
Michael Peters wrote: I'm not sure I completely understand what you're looking for here, but if you want an Ajax call to submit back to the same url you're page is coming from, then window.location will contain that. The problem does not arise with CGI::AJAX as it is mostly Perl-driven and I

  1   2   3   >