singal quote
singal quote
redhookbaker
Posts: 31Questions: 0Answers: 0
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]
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]
This discussion has been closed.
Replies
Allan