mth96a
09-11-2007, 11:40 AM
any one using the ext examples to do this in Domino? I hate the Domino file upload control, and need multi browser support
mth96a
09-11-2007, 12:21 PM
the fix to this says that the content type must be text/html, anyone know how to do this?
var uploadform = function(){
function initForm()
{
var uploadForm = new Ext.form.Form({
labelAlign: 'right',
fileUpload: true,
url: '/fileupload/ext/'
});
var fileField = new Ext.form.TextField({
allowBlank: false,
id: 'file_path',
inputType: 'file',
name: 'upload_file',
fieldLabel: 'File',
width: 300,
blankText: 'Please choose a file'
});
uploadForm.addButton(
'Upload',
function(){
uploadForm.submit({
waitMsg: 'Please Wait....',
reset: false,
failure: function(uploadForm, action){
Ext.MessageBox.alert('Error', action.result.data[0].responseMsg);
},
success: function(uploadForm, action){
Ext.MessageBox.alert('Confirm', action.result.info);
fileField.setValue('');
}
});
}
);
uploadForm.fieldset({legend: 'Please fill in file'},fileField);
uploadForm.column({width: 600, labelWidth: 120, style:'margin-left: 8px; margin-top: 8px'});
uploadForm.render('form-upload');
uploadForm.end();
}
return {
init : function(){
initForm();
}
}
}();
Ext.onReady(uploadform.init, uploadform, true);
amado
09-13-2007, 06:48 PM
try this, close the "tab form" in the page.
</form><div id="form-upload"></div>
r/amado
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.