You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Johnson <jo...@soho.club.tw> on 2004/11/20 10:19:56 UTC
Error invoking JavaScript event handler when use 2.1.6
Hi!
I try to upgrade my cocoon from 2.1.5 to 2.1.6,But there's an error occus
"Error invoking JavaScript event handler" when I use this command
"event.source.parent.lookupWidget();" in flow script.
The Code is ok in 2.1.5,Is it different coding method between 2.1.5 & 2.1.6
Best Regards
Johnson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Error invoking JavaScript event handler when use 2.1.6
Posted by Johnson <jo...@soho.club.tw>.
Sorry that my miss
I forgot to add a var to a variable,the line is
lot = event.source.parent.lookupWidget("/ob11_lot").value;
it's ok in 2.1.5
and in 2.1.6 it must be
var lot = event.source.parent.lookupWidget("/ob11_lot").value;
Best Regards
Johnson
----- Original Message -----
From: "Johnson" <jo...@soho.club.tw>
To: <us...@cocoon.apache.org>
Sent: Saturday, November 20, 2004 5:25 PM
Subject: Re: Error invoking JavaScript event handler when use 2.1.6
> sorry!
>
> The code event.source.parent.lookupWidget is writed in form
> definition,fd:on-value-changed
>
> Best Regards
>
> Johnson
> ----- Original Message -----
> From: "Johnson" <jo...@soho.club.tw>
> To: <us...@cocoon.apache.org>
> Sent: Saturday, November 20, 2004 5:19 PM
> Subject: Error invoking JavaScript event handler when use 2.1.6
>
>
>> Hi!
>>
>> I try to upgrade my cocoon from 2.1.5 to 2.1.6,But there's an error occus
>> "Error invoking JavaScript event handler" when I use this command
>> "event.source.parent.lookupWidget();" in flow script.
>> The Code is ok in 2.1.5,Is it different coding method between 2.1.5 &
>> 2.1.6
>>
>> Best Regards
>>
>> Johnson
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Error invoking JavaScript event handler when use 2.1.6
Posted by Johnson <jo...@soho.club.tw>.
sorry!
The code event.source.parent.lookupWidget is writed in form
definition,fd:on-value-changed
Best Regards
Johnson
----- Original Message -----
From: "Johnson" <jo...@soho.club.tw>
To: <us...@cocoon.apache.org>
Sent: Saturday, November 20, 2004 5:19 PM
Subject: Error invoking JavaScript event handler when use 2.1.6
> Hi!
>
> I try to upgrade my cocoon from 2.1.5 to 2.1.6,But there's an error occus
> "Error invoking JavaScript event handler" when I use this command
> "event.source.parent.lookupWidget();" in flow script.
> The Code is ok in 2.1.5,Is it different coding method between 2.1.5 &
> 2.1.6
>
> Best Regards
>
> Johnson
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org