+ Post New Thread
Results 1 to 2 of 2
Home Access Plus+ Thread, HAP+ JSON Debugging in Projects:; These are the steps I need you to take when logging a problem with AJAX/JSON that occur when you are ...
  1. #1
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,538
    Thank Post
    37
    Thanked 504 Times in 435 Posts
    Rep Power
    114

    HAP+ JSON Debugging

    These are the steps I need you to take when logging a problem with AJAX/JSON that occur when you are MyFiles/Setup.aspx/HelpDesk/BookingSystem

    Choose for which browser you use:

    For Firefox (PREFERRED)
    1. Install Firebug from Firebug
    2. Browse to the page you are having issues on in HAP+
    3. Enable Firebug by clicking on the Toolbar Icon
    4. Click on the Console Tab
    5. Enable Console Logging
    6. Refresh the Page
    7. Monitor the Console of Firebug
    8. When you perform the task and it doesn't respond correctly, look in the console for the responding JSON Request/Response
    9. Click on the + Sign next to the Url of the Request/Response (if not already expanded)
    10. Click on the XML/JSON Tab
    11. Copy and Paste the Results into the thread here on Edugeek

    For Internet Explorer (Version 8+)
    1. Press F12 on the Keyboard to get the Developer Tools up
    2. Click on the Network Tab
    3. Browse to the Website
    4. Start Capturing in the F12 Window
    5. When you perform the task and it doesn't respond correctly, look in the console for the responding JSON Request/Response
    6. Stop Capturing
    7. Double Click on to the Url of the Request/Response
    8. Click on the Response Body Tab
    9. Copy and Paste the Results into the thread here on Edugeek

  2. Thanks to nickbro from:

    mattgrimley (22nd November 2011)

  3. #2
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,538
    Thank Post
    37
    Thanked 504 Times in 435 Posts
    Rep Power
    114
    The information I'm looking for is:

    METHOD URL Status Time
    POST https://HAPURL/hap/api/MyFiles/Move?...:14:22.854Z%22
    200 OK
    [IMG]chrome://firebug/content/blank.gif[/IMG] 208ms



    If it's a POST you should see a POST tab in Firebug which will show you what jQuery has POST'd to the server

    JSON
    NewPath "N/WPA Files/Test2/asp.net - lesson 1.pdf"
    OldPath "N/WPA Files/asp.net - lesson 1.pdf"
    Overwrite "false"
    Source
    { "OldPath" : "N/WPA Files/asp.net - lesson 1.pdf", "NewPath": "N/WPA Files/Test2/asp.net - lesson 1.pdf", "Overwrite": "false" }

    If it goes RED or the status is not OK then you should also get a Response from the server in JSON format, paste that here as well

    Message
    "File Exists in Destination"
    Detail
    null
    FaultType "DuplicateNameException"

SHARE:
+ Post New Thread

Similar Threads

  1. User logon debugging
    By CHR1S in forum Windows Server 2000/2003
    Replies: 6
    Last Post: 25th January 2011, 04:36 PM
  2. Moodle and Debugging
    By faza in forum Virtual Learning Platforms
    Replies: 0
    Last Post: 28th January 2009, 12:52 PM
  3. Replies: 2
    Last Post: 24th January 2008, 09:26 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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