Welcome to WebmasterWorld Guest from 54.242.105.196

Forum Moderators: incrediBILL

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)

10+ Year Member



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 Sep 7, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



SNAFUsamarai,

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">
<tr>
<td width="100%" align="center">
<textarea name="code1" cols="40" rows="5" >

TEXT GOES HERE

</textarea>
</td>
</tr>
</table>
</form>

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

 

Featured Threads

Hot Threads This Week

Hot Threads This Month