sto cercando di adattare questo script
http://www.zurb.com/playground/ajax_upload
per il mio sito
il problema è che il previev non si vede...
ecco il codice
Codice PHP:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="../programmi/imagezoom/jquery-latest.js" type="text/javascript"></script><script src="ajaxupload.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
var thumb = $('img#thumb');
new AjaxUpload('imageUpload', {
action: $('form#newHotnessForm').attr('action'),
name: 'image',
onSubmit: function(file, extension) {
$('div.preview').addClass('loading');
},
onComplete: function(file, response) {
thumb.load(function(){
$('div.preview').removeClass('loading');
thumb.unbind();
});
thumb.attr('src', response);
}
});
});
function initZURB(){}
</script>
</head>
<body>
<h2>New Hotness</h2>
<div class="column-row">
<div class="seven columns">
<div class="preview">
[img]http://www.zurb.com/images/icons/128px/zurb.png[/img]
</div>
<span class="wrap hotness">
<form id="newHotnessForm" action="/playground/ajax_upload">
<label>Upload a Picture of Yourself</label>
<input type="file" id="imageUpload" size="20" />
<button type="submit" class="button">Save</button>
</form>
</span>
</div>
qualcuno puo' aiutarmi?

Rispondi quotando
ostmaster@localhost%22%3Ewebmaster%3C/A%3E.%20%3C/P%3E%3CH2%3EError%20404%3C/H2%3E%3CADDRESS%3E%3CA%20href=%22/%22%3Elocalhost%3C/A%3E%3CBR%3E%3CSPAN%3E17/04/2011%2018:23:05%3CBR%3EApache/2.2.17%20(Win32)%20mod_ssl/2.2.17%20OpenSSL/0.9.8o%20PHP/5.3.4%20mod_perl/2.0.4%20Perl/v5.10.1%3C/SPAN%3E%20%3C/ADDRESS%3E
