Results 1 to 2 of 2

Thread: Debugging JavaScript AJAX program!

  1. #1
    Join Date
    Aug 2012
    Quincy, Illinois
    Ubuntu 14.04 Trusty Tahr

    Exclamation Debugging JavaScript AJAX program!

    I am currently taking an online course for AJAX and I'm having a little trouble debugging the recent lessons assignment. It is basically an html page that has 11 buttons and they are supposed to start as disabled buttons except for the part 1 button. After you click the part 1 button is should be disabled by the javascript and the next button in the line should activate and so on. If you would like to see it in action please visit:

    Please let me know in a reply to this thread if you would like for me to copy and paste the source code for the page.
    Last edited by MasterProgram; October 13th, 2012 at 03:08 AM.

  2. #2
    Join Date
    Jul 2012

    Re: Debugging JavaScript AJAX program!

    It's kind of a pain, but one way to help debug is to use "window.alert()" calls to see what Javascript is being invoked. This is equivalent to debugging with PRINT statements in other languages.

    The other way is to use a debugger with your browser. Firefox requires an add-on. I think the Chrome browser has one built-in. This would be equivalent to using gdb with a C program.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts