I have this error:
TypeError: s.replace is not a function
68:Doc:Init
This is the code that generates the error:
function EL(s)
{
var sir = "";
sir = s.replace(/[&]/g,"&"); <<<---------------------- this is the error line
sir = sir.replace(/["]/g,""");
sir = sir.replace(/[“]/g,""");
sir = sir.replace(/[”]/g,""");
sir = sir.replace(/[']/g,"'");
return sir;
}
I am a newbie in javascript and adobe livecycle designer...what is causing the error ? What should i do