On 13/07/07, kewei xiao <[EMAIL PROTECTED]> wrote:
> I am not sure How I can handle event.observe in yml file, something like
> this:
>
> Event.observe( window, 'load',
>         function () {
>             Event.observe( 'country', 'click',  function () {
> countryChosen('country'); } );
>             Event.observe( 'country', 'keypress',  function () {
> countryChosen('country'); } );
>             countryChosen( 'country' );
>
> Can I use "attributes_xml: { onchange: countryChosen(this.id) }" to
> handle the event.observe?

Did you get this solved?

You might have to enclose the value in quotes:
    attributes_xml: { onchange: 'countryChosen(this.id)' }

Carl

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to