<div>Hi,</div> <div>This might be a pain in the neck to someone but please be patient if you read the mail. I having prob with Html::Prototype with Catalyst. It works like a champ with older version of Cat, but in the current version, the syntax might be a bit changed and I just cannot get it.</div> <div>I just tried a little test code posting in the Html::Prototype:</div> <div> </div> <div>On my template:</div> <div> </div> <div> <% $c->prototype->define_javascript_functions %></div> <div> <form action="/bar" method="post" id="baz"><BR> <fieldset><BR> <legend>Type search terms</legend><BR> <label
for="acomp"><span class="field">Search:</span></label><BR> <input type="text" name="acomp" id="acomp"/><BR> <span style="display:none" id="acomp_stat">Searching...</span><br /><BR> </fieldset><BR> </form></div> <div> <span id="acomp_auto_complete"></span><br/></div> <div> <% $c->prototype->auto_complete_field( 'acomp', { url => 'chain/autocomplete', indicator => 'acomp_stat' } ) %></div> <div> </div> <div>------</div> <div> </div> <div>and in my controller</div> <div> </div> <div>sub autocomplete : Global
{<BR> my ( $self, $c ) = @_;<BR> my @items = qw/foo bar baz/;<BR> $c->res->body( $c->prototype->auto_complete_result(\@items) );<BR>}</div> <div> </div> <div>-------</div> <div> </div> <div>I hope that someone has been using this auto_complete, and observe_field method in Catalyst would help me.</div> <div>I have read this <A href="http://dev.catalystframework.org/wiki/Guides/AJAX/SelectChaining">http://dev.catalystframework.org/wiki/Guides/AJAX/SelectChaining</A> , and also got syntax prob, because it shows no action at all</div> <div> </div> <div> Thank you for you help and your patience </div><p> 
<hr size=1>Boardwalk for $500? In 2007? Ha! <br><a href="http://us.rd.yahoo.com/evt=48223/*http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow">Play Monopoly Here and Now</a> (it's updated for today's economy) at Yahoo! Games.