You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mark Lundquist <ml...@wrinkledog.com> on 2006/11/20 18:56:47 UTC

Problem with

Hi,

I have a situation where the value-changed event handler for my widget 
needs visibility to a variable that is local to the flowscript function 
that is displaying the form.  Since within 
<fd:on-value-changed>/<fd:javascript>, 'this' refers to the current 
widget, I thought that I could solve this by attaching my handler as a 
property of the widget and then calling it from within 
<fd:on-value-changed>, i.e.

	in flow:

		someWidget.onValueChanged = function() { /* blah blah */ };

	in the def'n:

		<fd:field ...>
			<fd:on-falue-changed>
				<fd:javascript>
					this.onValueChanged();


But that doesn't work.  If I print (this.onValueChanged) from with the 
<fd:javascript>, I get 'undefined'.

Any ideas?

Thanks,
—ml—


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


"fd:", NOT "fb:" (was Re: Problem with )

Posted by Mark Lundquist <ml...@wrinkledog.com>.
I flubbed the "Subject:" header in my OP... I meant 
<fd:on-value-changed>, not <fb:on-value-changed>.
—ml—


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org