cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: how to use the document object in a widget
Date Thu, 24 Jun 2004 05:03:43 GMT
On 24.06.2004 02:50, Johnson wrote:
> Hi!
> 
> A newbie question,I want to handle the document object in widget like
> <fd:on-value-changed>
>     document.getElementById("date").focus();
> </fd:on-value-changed>
> 
> But "document not define" return.
> how to do this.

It's form.lookupWidget("date");

But there is definitely no function focus() on the server side. What you
want to do is client side javascript. Therefore you have to add that
snippet to your generated HTML and not to flowscript.

Joerg

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


Mime
View raw message