Below is my code to use the WebWizRTE control on my page.
I want to be access the contents of the control via Javascript. When I do this, all I see is the contents of my original html textbox, not what is in the WebWiz control.
How can I use javascript to access the contents of the WebWiz control?
How can I make sure I'm getting the user entered content in either the HTML control (if the WebWiz control didn't load for them) or the WebWiz control (if it did load for them)?
<%
'Declare the ASP variables used
Dim strFormName
Dim strTextAreaName
'ID tag name of the HTML form the textarea is within
strFormName = "frmMessage"
'ID tag name of HTML textarea being replaced
strTextAreaName = "txtMessage"
%>
<!--#include file="RTE_editor_inc.asp" -->
<form id="frmMessage" name="frmMessage" language="JavaScript" >
<textarea rows="10" name="txtMessage" id="txtMessage" cols="100">this is not working yet. Don't type anything here.</textarea>
</form>
<input type="button" id="btnSendReply" name="btnSendReply" value="Send Reply" onclick="PostReply()">
function PostReply()
{
alert(document.getElementById("txtMessage").value);
}