Correct way to make an AJAX call that doesn't need a response?
Is there a proper way to make an AJAX call when I don't want a response back from the server? I want the server to save some data, but the client doesn't need a response. If the server never responds, will the AJAX connection remain open, waiting for a response until it times out?

I would use Javascript like the following. It's a typical AJAX call except I left out the xmlhttp.onreadystatechange event.

    function SaveLabel()
    {
    	var xmlhttp = null;
    	if (window.XMLHttpRequest) {
    		xmlhttp = new XMLHttpRequest();
    	} else if (window.ActiveXObject) {
    		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    	} else {
    		alert('Your browser does not support this feature.');
    		return;
    	}
    
    	xmlhttp.open('GET', 'mypage.aspx?label=1');
    	xmlhttp.send(null);
    }


I found a similar question, but it doesn't really answer mine: http://stackoverflow.com/questions/5164081/does-ajax-connection-disconnect-at-some-point
Correct way to make an AJAX call that doesn't need a response?
===

Is there a proper way to make an AJAX call when I don't want a response back from the server? I want the server to save some data, but the client doesn't need a response. If the server never responds, will the AJAX connection remain open, waiting for a response until it times out?

I would use Javascript like the following. It's a typical AJAX call except I left out the xmlhttp.onreadystatechange event.

    function SaveLabel()
    {
    	var xmlhttp = null;
    	if (window.XMLHttpRequest) {
    		xmlhttp = new XMLHttpRequest();
    	} else if (window.ActiveXObject) {
    		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    	} else {
    		alert('Your browser does not support this feature.');
    		return;
    	}
    
    	xmlhttp.open('GET', 'mypage.aspx?label=1');
    	xmlhttp.send(null);
    }


I found a similar question, but it doesn't really answer mine: http://stackoverflow.com/questions/5164081/does-ajax-connection-disconnect-at-some-point