On Friday 10 July 2009 11:49:04 Security Management wrote:
> Can someone suggest a way to do this:
>
> <s:submit type="image" alt="Unlocked" src="%{unlocked_image}"
> onclick='$("<s:property value="#foo"/>").request(); return false;'/>
>
> I have tried a bunch of ways, but always wind up with the &lts:property...
> in the resulting HTML, rather than '$("form1").submit()' like I need.
>
> Thanks
>

Try this - 

<s:submit type="image" alt="Unlocked" src="%{unlocked_image}"
 onclick="%{'$(' + #foo + ').request(); return false;}'}"/>

-- 
Wes Wannemacher
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to