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]