
09-08-2011, 16:27:46
|
| |
Ajax İşlem Sonucunu Yazdırma | | Merhaba ajax ile resim upload ediyorum yanlız image-upload.php'de sonucda echo ile yazdırdığım yazıyı ajax ile nasıl çekip ekrana yazdırabilirim. Kod: $(function(){
var btnUpload=$('#upload');
var status=$('#status');
new AjaxUpload(btnUpload,
{
action: 'image-upload.php',
name: 'uploadfile',
onSubmit: function(file, ext)
{
if (! (ext && /^(jpg|png|jpeg|gif)$/.test(ext)))
{
status.text('Only JPG, PNG or GIF files are allowed');
return false;
}
status.text('Uploading...');
},
onComplete: function(file, response){
status.text('');
},
});
}); |