So ich habe es nochmals versucht ..
script.js habe ich folgendet nach:
Zitat$(function() {
Eingefügt:
ZitatAlles anzeigen
var bar = $('.bar');
var percent = $('.percent');
var status = $('#status');
$('form').ajaxForm({
beforeSend: function() {
status.empty();
var percentVal = '0%';
bar.width(percentVal)
percent.html(percentVal);
},
uploadProgress: function(event, position, total, percentComplete) {
var percentVal = percentComplete + '%';
bar.width(percentVal)
percent.html(percentVal);
},
complete: function(xhr) {
status.html(xhr.responseText);
}
});
In classes.php habe ich folgendes nach
Zitat$form .= '</form>';
Eingefügt:
Zitat
$form .= '<div class="progress">
<div class="bar"></div >
<div class="percent">0%</div >
</div>
<div id="status"></div>';
Es erscheint ein 0% unten im Form wenn ich Uploade passiert aber nichts..