function fireRequest(){
var ajax = new XMLHttpRequest();
ajax.onreadystatechange = function () {
if (this.readyState == 4) {
document.form1.ich.value = this.responseText;
}
}
ajax.send(null);
}
Ups. Das ist falsch, zu wenig c&p ;p
~~~javascript
function fireRequest(){
var ajax = new XMLHttpRequest();
ajax.open('GET','test.txt',true);
ajax.onreadystatechange = function () {
if (this.readyState == 4) {
document.form1.ich.value = this.responseText;
}
}
ajax.send(null);
}
So muss es natürlich da stehen.
MfG
bubble