Hmmm...
Probably there is a conflict here:
<html>
<head>
Quote:
<script language="JavaScript">
function cleanIt(){
var string=document.form1.pageContent.value;
string=string.replace(/´/g,'"');
string2=string.replace(/`/g,'"');
string3=string.replace(/'/g,'"');
document.form1.pageContent.value=string;
document.form1.pageContent.value=string2;
document.form1.pageContent.value=string3;
}
</script>
|
Quote:
<script language="JavaScript">
function cleanIttitle(){
var string=document.form1.Title.value;
string=string.replace(/'/g,"`");
string2=string.replace(/"/g,'`');
string3=string.replace(/"/g,"'");
document.form1.Title.value=string;
document.form1.Title.value=string2;
document.form1.Title.value=string3;
}
</script>
|
Quote:
<script language="JavaScript">
function stripx() {
var txtObj=document.getElementById('pageContent');
var str=txtObj.value;
str = str.replace(/\r/g,""); // strip /r
str = str.replace(/\n/g,"****"); // temp replace /n by a token
str=str.match(/(Other Resources)(.*)(E-mail this article)/);
var newstr = str[1] + str[2] + str[3];
newstr = newstr.replace(/\*\*\*\*/g, "\n");
document.getElementById('pageContent').value = newstr;
}
</script>
|
</head>
<body>
<form type=post action=newfile.asp>
<TEXTAREA ID="pageTitle" ROWS=3 COLS=57 > </TEXTAREA>
<textarea name="pageContent" id="pageContent" cols="117" rows="15">
</textarea><br>
<input type=submit onclick="cleanIt();cleanIttitle();stripx();">
</form>
</body>
</html>
Could someone help me to fix the error?
Bob