P
paratge
Hi,
I'm trying to create a preview function and i got an error near
"IndexOf("<Script"... at the end of my function and i don't understand
why
Here is my code :
function Previsualise()
{
{
var VSMESSAGE="";
VSMESSAGE=_RMP(_PAGE_.SAI_MESSAGE.value,unescape("\r
\n"),unescape("<BR>\r\n"));
VSMESSAGE=_RMP(VSMESSAGE,"<SIZE=","<FONT SIZE=");
VSMESSAGE=_RMP(VSMESSAGE,"</SIZE>","</FONT>")
VSMESSAGE=_RMP(VSMESSAGE,"<COLOR=","<FONT COLOR=");
VSMESSAGE=_RMP(VSMESSAGE,"</COLOR>","</FONT>")
VSMESSAGE=_RMP(VSMESSAGE,"<QUOTE>",unescape("<TABLE width=450
border=0 bgcolor=\"#fafafa\"><TR><TD style=\"border:1px solid #cdcdcd
\"><p style=\"font-size:9pt;word-wrap:break-word\">"));
VSMESSAGE=_RMP(VSMESSAGE,"</QUOTE>","</p></TD></TR></TABLE>")
VSMESSAGE=((unescape("<span class=\"TexteBillet\"><B>Aper%E7u :</
B><BR><BR>")+VSMESSAGE)+"</span>");
var VNPOSSCRIPT=0;
VNPOSSCRIPT=(VSMESSAGE.toLowerCase().indexOf("<script")+1);
while((VNPOSSCRIPT>0))
{var VNPOSFINSCRIPT=0
VNPOSFINSCRIPT=(VSMESSAGE.toLowerCase().indexOf("</
script>",VNPOSSCRIPT-1)+1);
VSMESSAGE=(VSMESSAGE.substring(0,(VNPOSSCRIPT-1))+_MI2(VSMESSAGE,
(VNPOSFINSCRIPT+10)));
VNPOSSCRIPT=(VSMESSAGE.toLowerCase().indexOf("<script",(VNPOSSCRIPT
+1)-1)+1);
}
eval("LIBHTM_BILLET").innerHTML=VSMESSAGE;
}
}
Is there anyone to explain where i got a mistake please ?
Thanks in advance.
I'm trying to create a preview function and i got an error near
"IndexOf("<Script"... at the end of my function and i don't understand
why
Here is my code :
function Previsualise()
{
{
var VSMESSAGE="";
VSMESSAGE=_RMP(_PAGE_.SAI_MESSAGE.value,unescape("\r
\n"),unescape("<BR>\r\n"));
VSMESSAGE=_RMP(VSMESSAGE,"<SIZE=","<FONT SIZE=");
VSMESSAGE=_RMP(VSMESSAGE,"</SIZE>","</FONT>")
VSMESSAGE=_RMP(VSMESSAGE,"<COLOR=","<FONT COLOR=");
VSMESSAGE=_RMP(VSMESSAGE,"</COLOR>","</FONT>")
VSMESSAGE=_RMP(VSMESSAGE,"<QUOTE>",unescape("<TABLE width=450
border=0 bgcolor=\"#fafafa\"><TR><TD style=\"border:1px solid #cdcdcd
\"><p style=\"font-size:9pt;word-wrap:break-word\">"));
VSMESSAGE=_RMP(VSMESSAGE,"</QUOTE>","</p></TD></TR></TABLE>")
VSMESSAGE=((unescape("<span class=\"TexteBillet\"><B>Aper%E7u :</
B><BR><BR>")+VSMESSAGE)+"</span>");
var VNPOSSCRIPT=0;
VNPOSSCRIPT=(VSMESSAGE.toLowerCase().indexOf("<script")+1);
while((VNPOSSCRIPT>0))
{var VNPOSFINSCRIPT=0
VNPOSFINSCRIPT=(VSMESSAGE.toLowerCase().indexOf("</
script>",VNPOSSCRIPT-1)+1);
VSMESSAGE=(VSMESSAGE.substring(0,(VNPOSSCRIPT-1))+_MI2(VSMESSAGE,
(VNPOSFINSCRIPT+10)));
VNPOSSCRIPT=(VSMESSAGE.toLowerCase().indexOf("<script",(VNPOSSCRIPT
+1)-1)+1);
}
eval("LIBHTM_BILLET").innerHTML=VSMESSAGE;
}
}
Is there anyone to explain where i got a mistake please ?
Thanks in advance.