Categories | Question details Back To List | ||
Dhtmlxvault onFileUploaded event is not beeing proceeded Good Morning, i have a problem with your dhtmlxvault. The event onFileUploaded is not beeing processed after a file is uploaded. And i do not understand why not. Here is my Code: <html> <head> <title>Upload Control</title> <link rel="stylesheet" type="text/css" href="uploader/dhtmlxvault.css" /> <script language="JavaScript" type="text/javascript" src="uploader/dhtmlxvault.js"></script> <script> function doInitVault() { vault=new dhtmlXVaultObject(); vault.setImagePath("uploader/imgs/"); vault.setFilesLimit(1); vault.setServerHandlers("uploader/UploadHandler.php", "uploader/GetInfoHandler.php", "uploader/GetIdHandler.php"); vault.onFileUploaded = function(files) { s += ("id:" + file.id + ",name:" + file.name + ",uploaded:" + file.uploaded + ",error:" + file.error)+"\n"; alert(s); window.close(); }; vault.onAddFile = function(fileName) { var ext = this.getFileExtension(fileName); if (ext != "xml") { alert("Bitte waehlen Sie ein xml Dokument aus"); return false; } else return true; }; vault.create("vaultDiv"); } </script> </head> <body> <div id="vaultDiv"></div> <script type="text/javascript">doInitVault();</script> </body> </html> I would be very happy if you could provide me some help. Kind regards, Daniel Zimmermann Answer posted by Support on Oct 16, 2009 04:09 Hello, Please check your javascript code - you use wrong arguments. Please check our sample code as well. vault.onFileUploaded = function(files) { s += ("id:" + file.id + look the bold names are different. |