You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Gr...@servicecanada.gc.ca on 2007/01/04 17:19:10 UTC
ID of DOJO objects?
If I have a Datepicker,
<span jwcid="startDate@DropdownDatePicker" value="ognl:filterStartDate" />
Does that mean the name of it is startDate? Or am I missing something else? I'm getting errors trying to do :
datepicker = dojo.widget.byId('startDate');
It's staying undefined.
Thanks,
Greg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: ID of DOJO objects?
Posted by andyhot <an...@di.uoa.gr>.
Well, it should generally work, though
datepicker = dojo.widget.byId('<span jwcid="@Insert" value="clientId:startDate"/>');
is safer.
Take a look at the generated html to see what exactly is happening.
Greg.L.Cormier@servicecanada.gc.ca wrote:
> If I have a Datepicker,
>
> <span jwcid="startDate@DropdownDatePicker" value="ognl:filterStartDate" />
>
> Does that mean the name of it is startDate? Or am I missing something else? I'm getting errors trying to do :
>
> datepicker = dojo.widget.byId('startDate');
>
> It's staying undefined.
>
> Thanks,
> Greg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
>
--
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org