Print Page | Close Window

textarea value no change with RTE

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=21391
Printed Date: 28 March 2026 at 11:07pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: textarea value no change with RTE
Posted By: mzr001
Subject: textarea value no change with RTE
Date Posted: 25 September 2006 at 2:55pm
Hello, i have a problem when i use RTE.
The RTE it's ok, but in my application i need fill the textarea with previous information, but when my javascript code set de textarea value, nothing happens.
the sintaxe is:
 
document.getElementById('myTextArea').value=document.getElementById(this.value).innerHTML
 
if i use this code without RTE, the textArea fills normally.
 
Tks for assistance
 


-------------
Tks
Mauricio



Replies:
Posted By: WebWiz-Bruce
Date Posted: 26 September 2006 at 11:03am
You need to populate your textarea before the RTE is initialised.

Otherwise also try putting the code directly into the RTE:-

document.getElementById('WebWizRTE').contentWindow.document.body.innerHTML


-------------
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


Posted By: mzr001
Date Posted: 26 September 2006 at 1:59pm
Clap Ok,
document.getElementById('WebWizRTE').contentWindow.document.body.innerHTML
Solve my problem.
Thanks very much for assistances.


-------------
Tks
Mauricio


Posted By: danaforte
Date Posted: 29 January 2007 at 11:58pm
Hello there,
I have a similar question.  I would like to populate the textarea value with already submitted data when the appropriate querystring variable is passed.  The value, however, does not appear to be populating the textarea.

I have tested it as simply as I could by just populating a variable

contentToPopulate = "some data"

        <textarea cols="80" rows="15" name="myTextarea" id="myTextarea"><%= contentToPopulate %></textarea>


Nothing shows up.



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