December 20th, 2013, 07:06 PM
Handling connection issues in ajax applications
If I let my application run for a long time while it is checking if the opponent makes a move, then once in a while it gives an error "POST failed" or something similar, and it refers to a line in jquery. Is that caused by connection issues?
I have no experience in asynchronous applications whatsoever so any tips are welcome.
December 21st, 2013, 03:26 AM
Many would suggest Firebug; it's an AddOn for Firefox.
I myself am too lazy to learn it though, so I usually rely on Firefox's "Web-Console" to monitor any AJAX requests/responses. I think it's has been a built-in tool since version 21???
To activate it just press the <Ctrl-Shift-K>. When you also need to see what's being sent/received, just right-click on the first AJAX line in the console and make sure to put checkmark on "Log request/ response body" menu item.
Hope this helps, good luck!
Last edited by hdewantara; December 21st, 2013 at 03:28 AM.