var b = Roo.get(document.body);
this.form = b.createChild({
tag: 'form',
- name: 'testForm',
method : this.method,
action : this.url,
target : this.newWindow ? '_new' : this.csvFrame.id,
}
- Roo.log(document.testForm.dom);return;
+
(function() {
this.submit = true;
this.form.dom.submit();
if (!this.submit) {
return false;
}
- return false;
+ //return false;
var frame = this.csvFrame;
var success = true;
Roo.MessageBox.alert("Download Error", doc.body.innerHTML);
success = false;
-
-
+ if (this.failure) {
+ this.failure();
+ }
+ return;
}
Roo.log(doc.body.innerHTML);
Roo.log(e.toString());
Roo.log(e);
}
+ if (this.success) {
+ this.success();
+ }
// we can not actually do anything with the frame... as it may actually still be downloading..
return true;