ah ok:
<html:checkbox name="someList" property="someStatus" indexed="true"
onclick="<%="javascript: changeSomeCheckBox("+index+")"%>" />
regards
Leon
On Thu, 2005-07-14 at 12:59 +0530, Vivek Chauhan wrote:
> Ya.. Thnx for ur suggestion..
> actually the problem is with struts only.... you can nest two struts tags..
> Wht I wz doing..
> logic:iterate name="someForm" property="someList" id="someList"
> indexId="index">
>
> <html:checkbox name="someList" property="someStatus" indexed="true"
> onclick="javascript: changeSomeCheckBox(<bean:write name="index" />)" />
>
> </loigic:iterate>
>
> But this didnt work so Now I m using input type = "checkbox" tag....
>
> Is there a way to work only using Struts tags..without resorting to pure
> HTML...
>
>
>
> Thanks,
>
> Vivek
>
> <html:checkbox onclick="foo(<bean:write name="index">)" />
> "Leon Rosenberg" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > <logic:iterate bla.... indexId="i">
> > <a href="#" onClick="myFunctionCall('<bean:write name="i"/>')">....
> > </a>
> > </logic:iterate>
> >
> > just an example.
> > regards
> > Leon
> >
> > On Thu, 2005-07-14 at 11:45 +0530, Vivek Chauhan wrote:
> >> Hi,
> >>
> >> How can I pass the index of the iterator<logic:iterator> tag to a
> >> Javascript
> >> function.
> >> I had used JSP scriptlet but tht wz not working..
> >> vivek
> >>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]