nickbro Posted November 22, 2011 Posted November 22, 2011 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) Install Firebug from Firebug Browse to the page you are having issues on in HAP+ Enable Firebug by clicking on the Toolbar Icon Click on the Console Tab Enable Console Logging Refresh the Page Monitor the Console of Firebug When you perform the task and it doesn't respond correctly, look in the console for the responding JSON Request/Response Click on the + Sign next to the Url of the Request/Response (if not already expanded) Click on the XML/JSON Tab Copy and Paste the Results into the thread here on Edugeek For Internet Explorer (Version 8+) Press F12 on the Keyboard to get the Developer Tools up Click on the Network Tab Browse to the Website Start Capturing in the F12 Window When you perform the task and it doesn't respond correctly, look in the console for the responding JSON Request/Response Stop Capturing Double Click on to the Url of the Request/Response Click on the Response Body Tab Copy and Paste the Results into the thread here on Edugeek 1
nickbro Posted October 3, 2012 Author Posted October 3, 2012 The information I'm looking for is: METHOD URL Status Time [TABLE=class: spyHeadTable focusRow outerFocusRow] [TR=class: spyRow] [TD=class: spyTitleCol spyCol]POST https://HAPURL/hap/api/MyFiles/Move?%222012-10-03T07:14:22.854Z%22 [/TD] [TD=class: spyCol]200 OK [/TD] [TD=class: spyCol]chrome://firebug/content/blank.gif[/TD] [TD=class: spyCol] 208ms[/TD] [/TR] [/TABLE] 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 [TABLE=class: netInfoPostJSONTable] [TR=class: netInfoPostJSONTitle] [TD]JSON [/TD] [/TR] [TR] [TD=class: netInfoPostJSONBody][TABLE=class: domTable] [TR] [TD][/TD] [TD][/TD] [TD=width: 70%][/TD] [/TR] [TR=class: memberRow userRow] [TD=class: memberHeaderCell][/TD] [TD=class: memberLabelCell]NewPath [/TD] [TD=class: memberValueCell] "N/WPA Files/Test2/asp.net - lesson 1.pdf"[/TD] [/TR] [TR=class: memberRow userRow] [TD=class: memberHeaderCell][/TD] [TD=class: memberLabelCell]OldPath [/TD] [TD=class: memberValueCell] "N/WPA Files/asp.net - lesson 1.pdf"[/TD] [/TR] [TR=class: memberRow userRow] [TD=class: memberHeaderCell][/TD] [TD=class: memberLabelCell]Overwrite [/TD] [TD=class: memberValueCell] "false"[/TD] [/TR] [/TABLE] [/TD] [/TR] [/TABLE] [TABLE=class: netInfoPostSourceTable] [TR=class: netInfoPostSourceTitle] [TD=colspan: 2]Source [/TD] [/TR] [TR] [TD=colspan: 2]{ "OldPath" : "N/WPA Files/asp.net - lesson 1.pdf", "NewPath": "N/WPA Files/Test2/asp.net - lesson 1.pdf", "Overwrite": "false" }[/TD] [/TR] [/TABLE] 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 [TABLE=class: domTable] [TR=class: memberRow userRow] [TD=class: memberLabelCell]Message [/TD] [TD=class: memberValueCell] "File Exists in Destination"[/TD] [/TR] [TR=class: memberRow userRow] [TD=class: memberHeaderCell][/TD] [TD=class: memberLabelCell]Detail [/TD] [TD=class: memberValueCell] null[/TD] [/TR] [TR=class: memberRow userRow] [TD=class: memberHeaderCell][/TD] [TD=class: memberLabelCell]FaultType [/TD] [TD=class: memberValueCell] "DuplicateNameException"[/TD] [/TR] [/TABLE]
Recommended Posts