tks,can I do it in template or XSLT
But how to make it interactive with widget event
Best Regards
Johnson
----- Original Message -----
From: "Joerg Heinicke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 24, 2004 1:03 PM
Subject: Re: how to use the document object in a widget
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]