Print Page | Close Window

javascript in textarea

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=5871
Printed Date: 31 March 2026 at 8:40am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: javascript in textarea
Posted By: cuedog
Subject: javascript in textarea
Date Posted: 21 September 2003 at 1:24am
I am having trouble posting javascript code to a textarea. I am not sure what else I need to do.

<script language="javascript" runat="server">
...
</script>

Everything I post inside these tags does not display

I use a replace function also

tmessage = Replace(tmessage, "<", "<")
tmessage = Replace(tmessage, ">", ">")
tmessage = Replace(tmessage, """", """)

What else can I do?

-------------
http://www.512ryders.com - 512 Ryders



Replies:
Posted By: Bluefrog
Date Posted: 23 September 2003 at 8:57am

Originally posted by cuedog cuedog wrote:

I am having trouble posting javascript code to a textarea. I am not sure what else I need to do.

<script language="javascript" runat="server">
...
</script>

Everything I post inside these tags does not display

I use a replace function also

tmessage = Replace(tmessage, "<", "<")
tmessage = Replace(tmessage, ">", ">")
tmessage = Replace(tmessage, """", """)

What else can I do?

<textarea>

<%
response.write Server.HTMLEncode(strScript)
%>

</textarea>

I think that will do it for you.

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net