in that case you could use a hidden iframe and set its location to the file-source ... so the text will be loaded into it. now you may use a function like the following to get the content of the txt-file:
-
function get_iframe_content(frame_name) {
-
// refer the frame by name and the frame's document
-
var doc = window.frames[frame_name].document;
-
return doc.firstChild.innerHTML;
-
}
-
and set that as the value of the textarea.
kind regards