Print Page | Close Window

Open an existing page in text area automatically

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


Topic: Open an existing page in text area automatically
Posted By: Darlo
Subject: Open an existing page in text area automatically
Date Posted: 14 January 2008 at 12:45pm
I have searched for an answer to this question, that i am sure has already been posed, so apologies but I cannot find any mention.
 
I want to provide a link to WWRTE that will automatically open the html page I want to edit in the text area. I dont want to have open an instance of the editor, and then open the page to edit via the open file button.
 
Is there a way of passing this variable i.e "homepage.htm" straight the editor.
 
Thanks in advance
 
Chris Darlington



Replies:
Posted By: Nalfaren
Date Posted: 30 January 2008 at 1:50pm
Something like this could work, i have something similar but just copied and
edited little quick for you to get an idea.
<%
 Dim strFormName
 Dim strTextAreaName
 strFormName = "bForm"
 strTextAreaName = "myTextarea"

 %>
<!-- include the Web Wiz Rich Text Editor -->
<!--#include file="RTE_editor_inc.asp" -->
        
<textarea name="textarea" cols="75" rows="22" id="myTextarea">
    <%
    'Read a file and write it to textarea.
    Set fs=Server.CreateObject("Scripting.FileSystemObject")
    Set f=fs.OpenTextFile(Server.MapPath(page to open), 1)
    response.write f.ReadAll
    f.Close

    Set f=Nothing
    Set fs=Nothing
    %>

</textarea>
       




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