Working Network Check and Ajax Call.