You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sundar Narasimhan <su...@ascent.com> on 2003/02/08 16:45:23 UTC
is there a way to get struts to interact well w/ scriptlets
I notice that if I use <nest:> I end up getting input fields whose
name looks like so
<input name="foo.bar">
This really doesn't play well with all the java script code we have
that rely on "eval'ing" target names such as
"window.document.someform.somelement".
If someelement is in dotted notation, eval on the java script side
tries to traverse it and throws errors.
Obviously I like the serverside traversals that nest gives you, but
I'm wondering how I can solve this problem.
Any ideas will be much appreciated. And please, no suggestions for
"avoid java script" because I have to use user interface elements like
calendars and spin controls etc. that I need on the client side :)
Basically I'm looking for what the struts sanctioned way of doing this
is..
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: is there a way to get struts to interact well w/ scriptlets
Posted by Kris Schneider <kr...@dotech.com>.
Can't you use window.document.someform.elements["foo.bar"]?
Sundar Narasimhan wrote:
> I notice that if I use <nest:> I end up getting input fields whose
> name looks like so
> <input name="foo.bar">
>
> This really doesn't play well with all the java script code we have
> that rely on "eval'ing" target names such as
> "window.document.someform.somelement".
> If someelement is in dotted notation, eval on the java script side
> tries to traverse it and throws errors.
>
> Obviously I like the serverside traversals that nest gives you, but
> I'm wondering how I can solve this problem.
>
> Any ideas will be much appreciated. And please, no suggestions for
> "avoid java script" because I have to use user interface elements like
> calendars and spin controls etc. that I need on the client side :)
>
> Basically I'm looking for what the struts sanctioned way of doing this
> is..
>
> Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
--
Kris Schneider <ma...@dotech.com>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org