SET_225_MSGPRES
<!-- the technique to display the messages in this component consists of assigning the <RDML MESSAGES> -->
<!-- to the Java Script variable called sMessages. In this case, sMessages will contain the text of the message -->
<!-- with a vertical bar (|) to separate the messages from each other. -->
<!-- You might choose any other character to separate the messages in case -->
<!-- you have messages with a vertical bar (|) as part of the message text. To do so, simply scan/replace the vertical bar (|) -->
<!-- symbol with the desired character. There should only be two occurrences of it. -->
<!-- The HTML in the new window is dynamically built and written to it. -->
<!-- To change the alternate row colors, change the value of NextColor variable -->
<SCRIPT LANGUAGE="JavaScript">
var sMessages = " ";
sMessages += "<RDML MESSAGES>|";
var NextColor = "white";
var msgWindow;
if (msgWindow != null)
{
}
msgWindow = window.open("", "Messages","height=200,width=500,scrollbars=yes,resizable=yes");
var content = "<html><body><div align=center>";
content += "<h1><font face='arial' color='darkblue'>Messages</font></h1><table border=0 cellpadding=1 cellspacing=0>";
msgWindow.document.write(content);
for (i=0; i<sMessages.length;i++)
{
Separator = sMessages.indexOf("|", i);
OneMessageLen = Separator - i;
OneMessage = sMessages.substr(i, OneMessageLen);
i = Separator;
content = "<tr bgcolor=";
content += NextColor;
content += "><td><LI><font face='arial' size=2>"
content += OneMessage
content += "</font></td></tr>";
msgWindow.document.write(content);
if (NextColor == "white") {
NextColor = "lightblue"
} else {
NextColor = "white"
}
}
content = "</table></div></body></html>";
msgWindow.document.write(content);
msgWindow.focus();
msgWindow.document.close(content);
</script>
<!-- the technique to display the messages in this component consists of assigning the <RDML MESSAGES> -->
<!-- to the Java Script variable called sMessages. In this case, sMessages will contain the text of the message -->
<!-- with a vertical bar (|) to separate the messages from each other. -->
<!-- You might choose any other character to separate the messages in case -->
<!-- you have messages with a vertical bar (|) as part of the message text. To do so, simply scan/replace the vertical bar (|) -->
<!-- symbol with the desired character. There should only be two occurrences of it. -->
<!-- The HTML in the new window is dynamically built and written to it. -->
<!-- To change the alternate row colors, change the value of NextColor variable -->
<SCRIPT LANGUAGE="JavaScript">
var sMessages = " ";
sMessages += "<RDML MESSAGES>|";
var NextColor = "white";
var msgWindow;
if (msgWindow != null)
{
if (msgWindow.opener == null) {msgWindow.opener.self;} | |
msgWindow.close(); |
msgWindow = window.open("", "Messages","height=200,width=500,scrollbars=yes,resizable=yes");
var content = "<html><body><div align=center>";
content += "<h1><font face='arial' color='darkblue'>Messages</font></h1><table border=0 cellpadding=1 cellspacing=0>";
msgWindow.document.write(content);
for (i=0; i<sMessages.length;i++)
{
Separator = sMessages.indexOf("|", i);
OneMessageLen = Separator - i;
OneMessage = sMessages.substr(i, OneMessageLen);
i = Separator;
content = "<tr bgcolor=";
content += NextColor;
content += "><td><LI><font face='arial' size=2>"
content += OneMessage
content += "</font></td></tr>";
msgWindow.document.write(content);
if (NextColor == "white") {
NextColor = "lightblue"
} else {
NextColor = "white"
}
}
content = "</table></div></body></html>";
msgWindow.document.write(content);
msgWindow.focus();
msgWindow.document.close(content);
</script>