...

View Full Version : how do i pass runtime arguement inJC



rafipassword
12-14-2007, 06:26 AM
how do i pass runtime arguement in java script method
if the arguement has special char such as
" and ' or ' or " then the metod doesnt get called

here i pass arguement in runtime
ie in jsp
<a href='javascript:addArtist("<bean:write name="listResult" property="individualName" />","<bean:write name="listResult" property="id"/>","<c:out value="${param['callBack']}"/>")'><bean:write name="listResult" property="individualName" />
</a>
the first arguement(ie "<bean:write name="listResult" property="individualName" />) will be

john's or john""s or joh'n"s

if the first arguement as john's or john""s or
joh'h"s



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum