yoosefalipour
دوشنبه 28 بهمن 1392, 11:19 صبح
سلام دوستان من یک اسکریپت دارم که وقتی فایلی آپلود میشه بعدش لینک ها رو نمایش میده از وقتی که لودینگ جی کئوری ( progress bar ) بهش اضافه کردم بعد از لود شدن دیگه نمایشش نمیده چرا؟
چطوری می تونم کاری کنم که آجاکس متوقف بشه و نمایش بده
$(function() { 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); }, success: function() { var percentVal = '100%'; bar.width(percentVal) percent.html(percentVal); }, complete: Here's what to do when the Ajax stop }); })();
کد های کامل : http://www.youp.ir/dl/file2/aeed-code.zip
لطفا راهنمایی کنید
چطوری می تونم کاری کنم که آجاکس متوقف بشه و نمایش بده
$(function() { 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); }, success: function() { var percentVal = '100%'; bar.width(percentVal) percent.html(percentVal); }, complete: Here's what to do when the Ajax stop }); })();
کد های کامل : http://www.youp.ir/dl/file2/aeed-code.zip
لطفا راهنمایی کنید