Thanks beate,

It still didn't recognise lookupWidget() but, since this is new, i
tried getWidget() in its place and it worked, must be my version of
cocoon (although I am using 2.1.4). Anyway its works so thanks again.

Greg.


On Mon, 28 Feb 2005 18:36:24 +0100, beatejung <[EMAIL PROTECTED]> wrote:
> hi greg,
> i tried your code. you should do this to access the other widget:
> 
> 
> >    <fd:field id="eventEndTimeCode" required="true">
> >     <fd:label>Event End Timecode<br/>(Format HH:MM:SS:FF)</fd:label>
> >     <fd:datatype base="string" />
> >     <fd:validation>
> >         <fd:regexp
> > pattern="(([0-1][0-9])|(2[0-3]))\:(([0-5][0-9]\:){2})([0-9][0-9]\/[0-9][0-9
> >])"> <fd:failmessage>Invalid time code: hh:mm:ss:ff/FF</fd:failmessage>
> > </fd:regexp>
> >         <fd:javascript> <!--CANNOT REFERENCE eventStartTimeCode FROM
> > HERE-->
> 
>         var start=widget.getForm().lookupWidget("eventStartTimeCode");
> 
> good luck
> beate
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to