Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

bringing .txt files into text box

Should be extremely easy, just can't think of the code.



2:18 am on Sep 7, 2001 (gmt 0)

Inactive Member
Account Expired


I need to open a .txt file into a large text box i put in the middle of a webpage that i have. The user is to pick a few specifications and then i have javascript making a file name out of them... i can get a picture to change to the right filename, but i need the text box to open a different text file too. - please help, i've been looking all over for help.
9:06 am on Sept 7, 2001 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Sept 4, 2001
votes: 49


I'm not 100% clear on what you're trying to do. I use teat areas on my site for people to copy prepared HTML to link to my site, as well as for other purposes. I'll send you a sticky with the URL of an example. See if this is what you mean. Otherwise, from what you're describing, it sound like you might need to use a frames page or I-Frame. In the mean time, here's the way I set up teat areas in a page:

<form name="code1" action="">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<td width="100%" align="center">
<textarea name="code1" cols="40" rows="5" >



And if you're wondering why it has <form></form> it's to make NN4 happy. Name is optional. action="" makes HTML validator happy.