Hi, we use smartgwt 2.5
Im doing file uload using UploadItem. The form action is redirected to IFrame created like this:
I couldnt get the HTML pane to draw IFame, but that is not the issue.
Then i redirect the form to use the iFrame for submit:
And then on click of a button i want to submit the import form:
The problem is that i want to handle the response from server which is in IFrame. I tried to submit it with callback etc. but nothing worked. How should this be done?
Im doing file uload using UploadItem. The form action is redirected to IFrame created like this:
Code:
HTMLPane pane = new HTMLPane(); pane.setOverflow(Overflow.HIDDEN); pane.setID("fileUploadFrame"); pane.setContents("<IFRAME NAME=\"fileUploadFrame\" style=\"width:0;height:0;border:0\"></IFRAME>");
Then i redirect the form to use the iFrame for submit:
Code:
form.setTarget("fileUploadFrame");
Code:
if (!frame.validate()) return; frame.submitForm(); dialogBox.hide();
Comment