Populating a textarea with a script
Posted on 2004-03-29
I have a script that populates a textarea with what ever file you will like to read. YOu can view html, txt, pl, cgi etc.
The only problem is when I read a HTML or scripting lang into a text area, if that file has a text area in it will not load right, the textarea in the file closes the textarea in the script.
here is an example.
blah blah blah blha
<input type="text" name="blah" id="blah">
Now when I load test.html into the script which will display test.html in the text area. The end tag for the textarea in Test.html will close the text area in the scrip that is reading the test.html.
I know this sounds confusing. But if anyone could help that would be great!