English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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

3 answers

Bala your answer will be found here in this link

http://www.google.co.uk/search?hl=en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=function+for+replacing+character+string+on+server+side+java+script&spell=1

2006-07-26 00:08:53 · answer #1 · answered by Joe_Young 6 · 0 0

Use an object type inside your function and copy value from parameter into it. use this object in manipulation.

2006-07-25 23:08:37 · answer #2 · answered by Indian_Male 4 · 0 0

WHAT???

2006-07-25 22:54:49 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers