Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Single Page App - Checking Connection
type : "GET",
url : "",
data : params,
timeout: 3000,
dataType : "json",
jsonp : "json",
success : function (response, textS, xhr) {
error : function (xmlHttpRequest, textStatus, errorThrown) {
alert("not ok " + errorThrown);
alert("request timed out");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment