input is undefined w
for(var i = 0; i < input.length; i++) {
SendForm : function(form, url, method) { this.form = mint.$D(form); this.url = url || this.form.action || this.url; this.method = method || this.form.method || "post"; var input = this.form.elements; for(var i = 0; i < input.length; i++) { if(this.disableForm) input[i].disabled = true; switch(input[i].type) { case "radio": case "checkbox": if(input[i].checked) this.AddParam(input[i].name, input[i].value); break; case "select-one": var sel = input[i].options[input[i].selectedIndex]; this.AddParam(input[i].name, sel.value.length > 0 ? sel.value : sel.innerHTML); break; case "select-multiple": for(var x = 0; x < input[i].options.length; ++x) { if(input[i].options[x].selected) this.AddParam(input[i].name, input[i].options[x].value); } break; default: this.AddParam(input[i].name, input[i].value); } } this.Send(this.url); },
Edit rozwiązane pod FF:
document.forms[form]; zamiast mint.$D(form);