singal quote

singal quote

redhookbakerredhookbaker Posts: 31Questions: 0Answers: 0
edited March 2010 in General
Hi,


Please see my code below, I need to call another javascript function "BreakValue", you can see I have using OnChange

onchange="BreakValue(this.form, \'form2<%=oRs("CommentsId")%>\');

What should I do for the singal quote?

thank you

[code]
/* Code List*/
{
"bSortable": false,
"bUseRendered": false,
"fnRender": function ( oObj ) {
return '<%If (Session("quickAssignCode")=True) Then%>'+
''+
'<%If(submitFormName="form1"&oRs("CommentsId"))then%>'+
'<%if rsCodeList.eof then%>'+
' '+
'<%Else%>'+
' '+
'<%Do while not rsCodeList.eof%>'+
'<%=rsCodeList("Code")%>-<%=rsCodeList("CodeName")%>'+
'<%rsCodeList.movenext%>'+
'<%Loop%>'+
'<%end If%>'+
'<%Set rsCodeList = Nothing%>'+
'<%End If%>'+
''+
''+
'<%else response.write "" end if%>';
}} ,
[/code]

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    I think this is more of an ASP question from the looks of things, than a DataTables one. You might get an answer about string escapes in an ASP forum.

    Allan
  • redhookbakerredhookbaker Posts: 31Questions: 0Answers: 0
    thank you
This discussion has been closed.