PDA

View Full Version : problem with SwfUploadPanel



andryi
26 Aug 2009, 7:12 AM
Hi all,
I've got a problem with swfuploadpanel



<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Hello World</title>
<link rel="stylesheet" type="text/css" href="JS/resources/css/ext-all.css" />
<script type="text/javascript" src="JS/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="JS/ext-all.js"> </script>
<link rel="stylesheet" type="text/css" href="JS/resources/css/SwfUploadPanel.css" />
<script type="text/javascript" src="JS/resources/SwfUpload.js"></script>
<script type="text/javascript" src="JS/resources/SwfUploadPanel.js"></script>
<script>
Ext.onReady(function() {
//charset=iso-8859-1
var uploader = new Ext.ux.SwfUploadPanel({
title: 'Upload Test'
, renderTo: 'grid'
, width: 500
, height: 300
, upload_url: 'http://localhost:8080/AjaxProject/JSP/upload2.jsp'

, id: 'MyUploadPanel'
, file_types: '*.jpg;*.jpeg;*.gif;*.png;*.pdf'
, file_types_description: 'Images / Pdf'

, debug: true
, flash_url: "JS/resources/swfupload_f8.swf"
, single_select: true
, single_file_select: false
, confirm_delete: false
, remove_completed: false
});

uploader.on('fileUploadComplete', function(panel, file, response) {

});

uploader.on('queueUploadComplete', function() {
if (Ext.isGecko) {
console.log('Files Finished');
} else {
alert('Files sdsdfgsdf');
}
});
});
</script>
<style type="text/css"></style>
</head>
<body>
<div id="grid"></div>
<br>
<div id="btn"></div>
</body>


but, this is the problem

http://s3.subirimagenes.com:81/otros/previo/thump_3101952error1.jpg


In the pic says, console undefinied, but I can't understand why?