使用PHP的Jquery UI进度栏 [英] Jquery UI Progress Bar with PHP

查看:97
本文介绍了使用PHP的Jquery UI进度栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过按照此处的本教程

I have tried to implement the Jquery UI Progress Bar without success by following this tutorial here http://t.wits.sg/2008/06/25/howto-php-and-jquery-upload-progress-bar/

APC已安装并在服务器上工作,因此问题必须是下面的代码,但是我处于死胡同,只是无法弄清为什么它不会更新进度条.我认为我已经正确地更改了代码以使其与Jquery UI进度条一起使用,而不是与它们所引用的代码一起使用.任何帮助将不胜感激.

APC is installed and working on the server so the issue must be the code below, but I'm at a dead end and just cant work out why it wont update the progress bar. I think I've changed the code correctly to work with the Jquery UI progress bar rather than the one they are referencing. Any help would be greatly appreciated.

推荐答案

测试您的假设.在代码中放入一条调试语句,以测试其值.

Test your assumptions. Put a debug statement into your code to test to see what the values are.

alert(print_r(data));

http://scriptnode.com/article/javascript-print_r-or -var_dump-equivalent/

此外,您可以使用Firebug的断点来阻止代码在特定行上执行.代码暂停后,您可以检查堆栈中每个变量的值.

Also, you can use firebug's breakpoints to stop the code from executing on a certain line. Once the code has halted, you can inspect the values of each variable in the stack.

http://getfirebug.com/doc/breakpoints/demo.html

这篇关于使用PHP的Jquery UI进度栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆