Hi again!
I’m trying to create a new element type to uploads files.
To upload a file I’m using the Ajax file upload plugin (ajaxfileupload.js), so what I need to know if I can call to that ajax function before I submit the form. I have tried this and didn’t work:
I think that the beforeSubmit is not on the correct place… cos I have put only an alert() and didn’t work. Which is the correct form to use this?
Maybe if I change the ajax function (about line 600) to submit the form on the file grid.formedit and use $.ajaxFileUpload would be a possible solution?
Is it possible to have a complete exemple to add a input file in jqgrid ? I don't know what write in 'colModel' and I need to have a complete exemple of a function beforeSubmit() and ajaxFileUpload().