Dear all,
This function for replace the char in a string on serverside java script , the return value contains replaced value for frist target of matching
<%
function replaceMy(insert)
{
Response.write("----"+insert);
var indexVal=insert.indexOf("'")
if(indexVal<0)
return insert
if(indexVal>0)
{
insert=insert.replace("'",'"');
replaceMy(insert);
}
return insert;
}
Response.write("####"+replaceMy("434'33'4'0676'09"));
%>
Thanks in advance ,
Bala
2006-07-25
22:51:44
·
3 answers
·
asked by
Bala
1
in
Computers & Internet
➔ Programming & Design