hello qooxdoo-developers,
hope, you understand my english... ;-)
i got a problem with dealing file-uploads via html and qooxdoo. i
implemented a data-upload for data in the local data system. they are safed
to a database and all uploaded datas should be showed in a grid table on the
same page as the upload-dialog.
current situation:
i'm using embed html to generate the browe-dialog and redirect the upload
with the help of an iframe (for preventing to reload the whole page):
var html = new qx.ui.embed.Html("<form id='UploadForm' method='post'
target='upload_target' enctype='multipart/form-data'>" +
"<input name='myFile' type='file'
size='50' accept='text/*'></input>" +
"<iframe id='upload_target'
name='upload_target' src=''
style='width:0;height:0;border:0px solid #fff;'></iframe>" +
"</form>");
this.__myUploadBar.add(html, {top:5, left:5, right:750});
secondly i got a qooxdoo-upload-button where i'm dealing the upload-logic.
i set the action, which leads to the related controller wich safes the data
in a database.
__onUploadClickend : function (action)
{
var filelist = document.getElementsByName('myFile')[0];
if (filelist.files.length > 0)
{
var theForm = document.getElementById('UploadForm');
theForm.action = action;
theForm.submit();
this._updateData();
}
else
{
alert("Please choose a data!");
}
},
this is working fine, the data content is stored in the database.
but the problem is the display in the table grid. the method
"this._updateData();" reloads this content. but this only works, if i'm in
debugging-modus. in the case described above the method
"this._updateData();" is executed directly after the submit, no matter if
the submit is finished or not.
the problem is, that i don't know the exactly time of the end of submit.
is it possible to find out the end of the submit? i haven't found a proper
event which is handling this problem.
any ideas?
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Reload-Table-Grid-Display-after-File-Upload-with-embed-HTML-tp6625961p6625961.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel