Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Open an existing page in text area automatically
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedOpen an existing page in text area automatically

 Post Reply Post Reply
Author
Darlo View Drop Down
Newbie
Newbie


Joined: 14 January 2008
Location: UK
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Darlo Quote  Post ReplyReply Direct Link To This Post Topic: Open an existing page in text area automatically
    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
Back to Top
Nalfaren View Drop Down
Newbie
Newbie


Joined: 23 April 2006
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nalfaren Quote  Post ReplyReply Direct Link To This Post 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>
       

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.