chuvinha
21 Dec 2010, 11:37 AM
Hi guys, I am not to use the upload.
I put these lines in the jsp:
<link rel="stylesheet" type="text/css" href="js/ext-3.1/examples/ux/fileuploadfield/css/fileuploadfield.css" />
<script type="text/javascript" src="js/ext-3.1/examples/ux/fileuploadfield/FileUploadField.js"></script>
My code:
Ext.onReady(function() {
var fieldArquivo = new Ext.ux.form.FileUploadField( {
fieldLabel : 'Arquivo',
name : 'arquivo_upload',
id : 'form-file',
allowBlank : false,
anchor : '100%'
});
// form
var form = new Ext.form.FormPanel( {
id : 'formArquivo',
renderTo : 'uploadDaGaleria',
fileUpload : true,
monitorValid : true,
// @@MODIFY
items : [ fieldCodigo, fieldComplemento, fieldArquivo ],
buttons : [ btnCancelar, btnSalvar ]
});
});
And it appears the error:
Ext.ux.form is undefined
var fieldArquivo = new Ext.ux.form.FileUploadField( {
I already checked and the path is rigth.
Does anyone know why it isn't recognizing the Ext.ux.form.FileUploadField?
I put these lines in the jsp:
<link rel="stylesheet" type="text/css" href="js/ext-3.1/examples/ux/fileuploadfield/css/fileuploadfield.css" />
<script type="text/javascript" src="js/ext-3.1/examples/ux/fileuploadfield/FileUploadField.js"></script>
My code:
Ext.onReady(function() {
var fieldArquivo = new Ext.ux.form.FileUploadField( {
fieldLabel : 'Arquivo',
name : 'arquivo_upload',
id : 'form-file',
allowBlank : false,
anchor : '100%'
});
// form
var form = new Ext.form.FormPanel( {
id : 'formArquivo',
renderTo : 'uploadDaGaleria',
fileUpload : true,
monitorValid : true,
// @@MODIFY
items : [ fieldCodigo, fieldComplemento, fieldArquivo ],
buttons : [ btnCancelar, btnSalvar ]
});
});
And it appears the error:
Ext.ux.form is undefined
var fieldArquivo = new Ext.ux.form.FileUploadField( {
I already checked and the path is rigth.
Does anyone know why it isn't recognizing the Ext.ux.form.FileUploadField?