tobi85: AJAX Abbruch bei Post

Beitrag lesen

Hallo,

anbei mal der Code



		$.ajax({method: "GET",url: ajaxnavi, data: ajaxvars, success: function(response){
			$("#navi").html(response);
		}});

		$.ajax({method: "POST",url: ajaxcontent, data: ajaxvars, cache: false, success: function(response){
			$("#content").html(response);
		},
	error: function (jqXHR, exception) {
        var msg = '';
        if (jqXHR.status === 0) {
            msg = 'Not connect.\n Verify Network.';
        } else if (jqXHR.status == 404) {
            msg = 'Requested page not found. [404]';
        } else if (jqXHR.status == 500) {
            msg = 'Internal Server Error [500].';
        } else if (exception === 'parsererror') {
            msg = 'Requested JSON parse failed.';
        } else if (exception === 'timeout') {
            msg = 'Time out error.';
        } else if (exception === 'abort') {
            msg = 'Ajax request aborted.';
        } else {
            msg = 'Uncaught Error.\n' + jqXHR.responseText;
        }
        console.log(msg);
	console.log(jqXHR.responseText);
	console.log(exception);
    }	
	});
	}

0 59

AJAX Abbruch bei Post

tobi85
  • javascript
  • php
  • webserver
  1. 0
    pl
    1. 0
      tobi85
      1. 0
        dedlfix
        1. 0
          tobi85
          1. 0
            dedlfix
          2. 0
            Christian Kruse
            1. 0
              dedlfix
              1. 0
                Christian Kruse
                1. 0
                  MudGuard
                2. 0
                  dedlfix
                  1. 0
                    Christian Kruse
                    1. 0
                      dedlfix
                      1. 0
                        Christian Kruse
      2. 0
        pl
        1. 0
          tobi85
          1. 0
            pl
            1. 0
              tobi85
              1. 0
                dedlfix
                1. 0
                  dedlfix
                  1. 0
                    Christian Kruse
                    1. 0
                      dedlfix
                      1. 0
                        tobi85
                        1. 0
                          Christian Kruse
                        2. 0
                          dedlfix
                          1. 0
                            tobi85
                            1. 0
                              dedlfix
                              1. 0
                                tobi85
                                1. 0
                                  dedlfix
                                  1. 0
                                    Christian Kruse
                                    1. 0
                                      dedlfix
                                      1. 0
                                        Christian Kruse
                                        1. 0
                                          dedlfix
                                          1. 0
                                            Christian Kruse
                                            1. 0
                                              dedlfix
                                              1. 0
                                                Christian Kruse
                                                1. 0
                                                  dedlfix
                                                  1. 0
                                                    Christian Kruse
                                                    1. 0
                                                      dedlfix
                                                      1. 0
                                                        Christian Kruse
                                                        1. 0
                                                          dedlfix
                                                    2. 0
                                                      dedlfix
                                                      1. 0
                                                        Christian Kruse
                                                    3. 0
                                                      Der Martin
                                                      1. 0
                                                        Christian Kruse
                                                        1. 0
                                                          dedlfix
                                                        2. 0
                                                          Der Martin
                                  2. 0
                                    tobi85
                                    1. 0
                                      dedlfix
                                      1. 0
                                        tobi85
                                        1. 0
                                          tobi85
                                          1. 0
                                            dedlfix
                                            1. 0
                                              Christian Kruse
              2. 0
                Christian Kruse
                1. 0
                  Christian Kruse
                  1. 0
                    tobi85
                    1. 0
                      Christian Kruse
              3. 0
                pl
          2. 0
            Christian Kruse