Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder
    Join Date
    May 2005
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Opening A .txt File Into A Textarea

    Hi,


    Using the asp upload method, how I bang the file on the server,
    using file.getfilename and place that to a TEXTAREA?

    The file must me selected from a list to choose the text file which you want to input. Then using the fso read the file and copy contents in text area.

    I have this script, but not works:
    <html>
    <body onload="document.getElementById( 'idMyArea' ).value = document.frames[ 0 ].document.body.innerText;" >
    <textarea name="txtMyArea" id="idMyArea"></textarea>
    <iframe src="file:\\<%=Request.Form( "NameOfFileControl" )%> id="idMyFrame" style="display:none;"></iframe>
    </body>
    </html>
    I would be very intrigued to see the solution.

    Many Thanks for any assistance,

    Best

    JLee
    Last edited by JANLEE; 09-27-2005 at 02:47 AM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •