Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Not retaining text.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedNot retaining text.

 Post Reply Post Reply
Author
ckvkkeek View Drop Down
Newbie
Newbie


Joined: 29 November 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote ckvkkeek Quote  Post ReplyReply Direct Link To This Post Topic: Not retaining text.
    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?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.