AnonymousXXS: Problem mit getElementsByTagName

Beitrag lesen

Hallo Community!
Ich habe ien Problem mit einer for-Schliefe und getElementsByTagName(). Und zwar möchte ich alle Elemente zu einer ajax-abfrage umformen.. das ganze mache ich so:
this.postString = '';

for(i=0;i<=document.getElementsByTagName('input').length;i++){

this.input = document.getElementsByTagName('input');
        this.name = this.input[i].name;
        this.value = this.input[i].value;

if(i==0){
        this.postString += this.input[0].name + '=' + escape(this.input[0].value);
      }else{
        this.postString += '&' + this.name+ '=' + escape(this.value);
      }
Leider kommt immer die Fehlermeldung:
Fehler: this.input[i] has no properties
Quelldatei: http://localhost/gbook/templates/1/js_functions.js
Zeile: 94

Ich hoffe auf hilfe!
Gruß, AnonymousXXS