Hi,
  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.
  I just tried a little test code posting in the Html::Prototype:
   
  On my template:
   
          <% $c->prototype->define_javascript_functions %>
          <form action="/bar" method="post" id="baz">
        <fieldset>
                <legend>Type search terms</legend>
                <label for="acomp"><span class="field">Search:</span></label>
                <input type="text" name="acomp" id="acomp"/>
                <span style="display:none" 
id="acomp_stat">Searching...</span><br />
        </fieldset>
        </form>
          <span id="acomp_auto_complete"></span><br/>
          <% $c->prototype->auto_complete_field( 'acomp', { url => 
'chain/autocomplete', indicator => 'acomp_stat' } ) %>
   
  ------
   
  and in my controller
   
  sub autocomplete : Global {
        my ( $self, $c ) = @_;
        my @items = qw/foo bar baz/;
        $c->res->body( $c->prototype->auto_complete_result([EMAIL PROTECTED]) );
}
   
  -------
   
  I hope that someone has been using this auto_complete, and observe_field 
method in Catalyst would help me.
  I have read this 
http://dev.catalystframework.org/wiki/Guides/AJAX/SelectChaining , and also got 
syntax prob, because it shows no action at all
   
   Thank you for you help and your patience 

       
---------------------------------
Boardwalk for $500? In 2007? Ha! 
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to