
questions on passing text parameter from server script to client script (some new findings)
The following is part of my code:
<script LANGUAGE="
VBScript">
Sub showHead(str)
document.writeln(str)
End Sub
</script>
<%mesgString = "Message: " & recordAry(mesgPos,counter)%>
<p align="left"><script>call showHead("<%=mesgString%>")</script></p>
It shows nothing on html page.
I have tested with unicode and ANSI text as input.
I found that ANSI code can post successfully but unicode cannot.
But <%Response.Write(mesgString)%> can show unicode string successfully.
Is that document.writeln(str) restrict to use unicode?
Any solution on solving this problem?
BTW, I cannot find the reference/website on the document.writeln. Would u
please suggest one?
Thanx