Try this: ... onclick="cal17.select(document.forms[0]["item.dateFound"],'anchor17','MM/dd/ yyyy');return false;" ...
Aaron AK wrote: > I want to pass the 'item.dateFound' inside a JSP to JS, but am having > problems > because of the periods. > > <s:text name="item.dateFound" class="required"/> > > I want to repalce "date17" in the JS below w/ 'item.dateFound': > > <a href="#" > onclick="cal17.select(document.forms[0].date17,'anchor17','MM/dd/ > yyyy');return false;" > title="cal17.select(document.forms[0].date17,'anchor17','MM/dd/yyyy'); > return false;" > name="anchor17" > id="anchor17">select</a> > > But the problem is that the period between item and dateFound is interpreted > as > a sub and sub-sub element of the document, respectively. How can I get > around > this? > > I tried this, but no luck: > > ... > onclick="cal17.select(document.forms[0]."item.dateFound",'anchor17','MM/dd/ > yyyy');return false;" > ... > > TIA > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > > ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
