【发布时间】:2009-11-23 07:56:36
【问题描述】:
我正在尝试通过 using this example 让 YUI 上传器在我的计算机/本地主机上工作。 页面使用的 javascript,can be view here。
上传按钮有以下处理程序:
YUE.on('upload', 'click', this.upload, null, this);
(...)
upload : function(e) {
YUD.get('browse').style.display = 'none';
this.uploader.disable();
this.uploader.uploadAll('wp-content/themes/storelocator/include/upload.php', 'GET');
},
PHP 文件如下所示:
<?php
echo "TEST";
?>
当我点击上传按钮时,页面被重新加载,但没有回显。上传按钮是简单的html按钮<button id="upload">Upload</button>。
“test”没有回显有什么原因吗?
【问题讨论】:
标签: php javascript yui yui-uploader