I would like to populate one combo box with data when the user chooses
an option from another combo box.
I am currently using CA and HT only and would like to keep it that way
if possible.
If that answer is Javascript that is okay...I would rather it not. ; )
Robert
I would like to move one of my sites to TT from HTML::Template. It
uses the ValidateRM module currently because the pod examples are in HT.
Is there somewhere that shows how to do that?
Robert
-
Web Archive:
Robert Hicks wrote:
I would like to populate one combo box with data when the user chooses
an option from another combo box.
I am currently using CA and HT only and would like to keep it that way
if possible.
If that answer is Javascript that is okay...I would rather it not. ; )
Javascript
Sean Davis wrote:
Robert Hicks wrote:
I would like to populate one combo box with data when the user chooses
an option from another combo box.
I am currently using CA and HT only and would like to keep it that way
if possible.
If that answer is Javascript that is okay...I would rather it
Is the data in the second box dependent upon the answer in the first?
Are they both static lists?
However it sorts out, I think the right answer involves using JS at
some level. Why? It saves a roundtrip to redraw your form, which
means your user gets to interact w/ the next step faster.
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
Let's say you've got two lists, and a selection in list A narrows down
choices in list B. An app I work on knows list A and list b and the
relation between items in both. So, we could use CGI::App and H::T to
populate both JS arrays and send that as part of the form. Then, a JS
function
From: Robert Hicks [EMAIL PROTECTED]
I have avoided Ajax up to now. I guess I will delve into.
I did something like this before. I used the JS form submit function when the
select/option choice changed. I'm not a big fan of JS, but I feel better about
it now.
However, I also put a submit
All you'd need to do is replace the HT parameters in your templates with TT
syntax. You should also look at C::A::Plugin::AnyTemplate if you don't want
to change the invocation of your templates by your Perl code
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of
Hi
The CGI::Ajax site (http://www.perljax.us) has some example code that does
what you want (http://www.perljax.us/demo/pjx_combo.pl)
Dan
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Robert Hicks
Sent: Wednesday, 11 October 2006 12:43 p.m.
To:
10 matches
Mail list logo