[Catalyst] HTML::Prototype (observe_field)

Will Smith willbelair at yahoo.com
Tue Nov 22 17:51:14 CET 2005


I've used Html::Prototype in my app. The autocomplete working fine, but the observer_field does not. Here is my simple code (i just want to invoke the javax function for testing purpose, not to return a value, will do this later): 
  on the template:
  ---------
  [% c.prototype.define_javascript_functions %]
[% c.prototype.observe_field %]
  <input type="text" id="myfield" name="myfield">
  [% c.prototype.observe_field(myfield,{
  url    => base _ observefield/go'   # trigger the sub go -> to another tmplate
}) %]
   
  ------
  in the myapp::C::Observerfield
   
  sub go : Local {
    my ( $self, $c ) = @_;
    $c->stash->{template} = Observer/new_template.tt';
}
   
  Could someone show me why it does not do anything?
  Thanks

		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20051122/63f6c879/attachment.htm


More information about the Catalyst mailing list