[html-formfu] dynamically filter a Select list
Ascii King
tech at swattermatter.com
Tue Sep 15 20:34:58 GMT 2009
Ascii King wrote:
>
>> I'm not familair with AJAX, but I will look up that route as it seems
>> to be be pretty much exactly what I want. I am also trying the
>> paginated approach right now. I am having trouble passing variables
>> around the different functions, though. (have I mentioned I'm not a
>> strong perl programmer?) I may ask about that later.
>>
>> Thanks Byron.
>>
>
> This is actually a Catalyst question, but since Byron brought it up
> here I figured it's OK to ask it here. I have an example of AJAX and
> Catalyst that I can't get working. (AJAX is awesome, by the way)
> http://www.dev411.com/wiki/AJAX_Select_Chaining_with_Catalyst
>
> The example is exactly what I need, manipulating a select box after
> the page has loaded. It uses HTML::Prototype and
> Catalyst::Plugin::Prototype. Everything seems to be working except the
> select field is not dynamically populated. It appears to be a problem
> with the following line:
>
> <head>
> [% c.prototype.define_javascript_functions %]
> </head>
>
> This doesn't seem to do anything. I think it is supposed to load a set
> of functions into the header, but when I check the in-browser source
> code, nothing is there. I have installed HTML::Prototype and
> Catalyst::Plugin::Prototype on my computer. Is there something I need
> to add to my code to get it to recognize those plugins?
>
> _________________________________
I apologize for spamming the group with my idiocy. I had simply
forgotten to add "Prototype" to the "use Catalyst" subroutine in the
MyApp.pm file. It is working now.
Thanks.
(I am much embarrassed)
More information about the HTML-FormFu
mailing list