Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Thanked 0 Times in 0 Posts

    how do i pass runtime arguement inJC

    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"/>","<cut value="${param['callBack']}"/>")'><bean:write name="listResult" property="individualName" />
    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
    Last edited by rafipassword; 12-14-2007 at 06:28 AM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts