All other things being equal, that is assuming that you can retrieve the content you desire, this is where the contents of the external page are actually written to the 'top' page:
Code:
function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
document.getElementById(containerid).innerHTML=page_request.responseText
}
Specifically, the red line. Now, you can give your textarea an id and access it in that same manner as a division but, a textarea doesn't have an innerHTML object, or if it does, it isn't the same type of thing. What a textarea does have is its value attribute which represents/holds/'stands for' the text it contains. So, you could do this:
Code:
document.getElementById(containerid).value=page_request.responseText
Bookmarks