0

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 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.

17
  • What's the value of "data" in "showUpload()" ? Commented Apr 27, 2011 at 10:35
  • What would be the best way of finding that out? (sorry for such a simple question) Commented Apr 27, 2011 at 10:40
  • No need to apologize, that's what this place is for. :-) alert(print_r(data)); scriptnode.com/article/… Commented Apr 27, 2011 at 10:43
  • I put that code straight after $.get("test.php?id=" + progress_key, function(data) { and nothing came up so I'm guessing null :o( Commented Apr 27, 2011 at 10:46
  • it's probably not executing that line. Try moving it up before the return statement. Commented Apr 27, 2011 at 10:47

1 Answer 1

1

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/

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.