use a single quote for each parameter u pass into javascript function
and a double quote on the
eg.
onClick=" selectMe('<%=pVO.getIcd9()%>','<%=str%>')"
think that's gonna work...
if not then its the value that ur method returns as u mentioned it'll
return a value like so "abc"
did u replace the double quote within the method? check if u have replaced
the value correctly
alert ur value so u know what result u got
good luck
----- Original Message -----
From: "subhash" <skapur@n...>
To: "Pro_JavaServer_Pages" <pro_jsp@p...>
Sent: Tuesday, January 07, 2003 1:11 AM
Subject: [pro_jsp] How to dealing with double- quote in java/javascript
>
> Hi,
> The scenario is like this:
> --------------------------------
> <%
> String str = "\\\"asddasda\\\" sdds";
> %>
>
> <tr class="lblValueNormal" style="cursor: hand" onClick='selectMe(<%
> =pVO.getIcd9()%>,<%=str%>)' >
> ----------------------------------
> is giving me error.I saw 2 question similar and made single quote working
> but for double quote thats not working.My value coming from database is
> like this ("abc" def),double quotes in value.I think " should be replaced
> by \" but its giving error.
> Any Suggestions?
> Thanks
> Subhash