Print Page | Close Window

Not retaining text.

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=21148
Printed Date: 28 March 2026 at 7:15am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Not retaining text.
Posted By: ckvkkeek
Subject: Not retaining text.
Date Posted: 27 August 2006 at 5:21am
I have this code:
        <%
                                    Dim strFormName
                                    Dim strTextAreaName
                                    'ID tag name of the HTML form the textarea is within
                                    strFormName = "htmlmessage"

                                    'ID tag name of HTML textarea being replaced
                                    strTextAreaName = "htmlmessage"
                                    Dim strTest
                                    strTest = "abc"

                                %>
                                <!-- include the Web Wiz Rich Text Editor -->
                                    <!-- #include FILE="RTE_editor_inc.asp" -->
                                    <textarea name="htmlmessage" rows="33" cols="37" id="htmlmessage">
                                    <%=strTest%>
                                    </textarea>

But the textarea is always just <br>, why is my "abc" not showing?



Replies:
Posted By: WebWiz-Bruce
Date Posted: 27 August 2006 at 10:48am
You have given your form and text area the same name.

This is the problem as when a command is run by the javascript it doesn't know if you are referring to the form tag or the text area tag.

Change the name and id property of your form element to something other than htmlmessage


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



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