Use Struts Tags output as JavaScript parameter
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Shane_Ye
Posted On:   Wednesday, August 28, 2002 10:22 AM

HI, Has anyone tried this?
I want to use the output of Tag to be JavaScript function's parameter. looks like this

)"/>

The problem I jave is the browser doesn't parse the Tag in JavaScript's parameter area. Is there any alternative way to do this?
Thanks
Shane

Re: Use Struts Tags output as JavaScript parameter

Posted By:   Christopher_Koenigsberg  
Posted On:   Wednesday, August 28, 2002 02:48 PM

Here is a working example from a JSP page of ours. It took me a long to get all the yucky nested single and double quotes, and angle brackets, just right:




onclick="return setciftodelete(<%="\'"%><%="\'"%>)">
About | Sitemap | Contact