[Catalyst] HTML::Prototype (observe_field)

Adam Jacob adam at stalecoffee.org
Tue Nov 22 20:34:20 CET 2005


On Nov 22, 2005, at 8:51 AM, Will Smith wrote:

> 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
> }) %]

Perhaps you are missing a ' in the url line?

   url    => base _ observefield/go'   # trigger the sub go -> to  
another tmplate

Should be:

   url    => base _ 'observefield/go'   # trigger the sub go -> to  
another tmplate

?

Adam

---
Victory has a thousand fathers, but defeat is an orphan.  -- John F.  
Kennedy







More information about the Catalyst mailing list