Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

'get' works but 'post' do not work

$
0
0
<script>
        var xmlhttp;
        function loadXmlDoc() {
            if (window.XMLHttpRequest) {
                xmlhttp = new XMLHttpRequest();
            }
            else {
                xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
            }

            xmlhttp.onreadystatechange = function () {
                if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
                {
                    document.getElementById('div').innerHTML = xmlhttp.responseText;
                }
            }

            xmlhttp.open('get', '../TextFile1.txt', true);  //change get to post not work, why????
            xmlhttp.send();
        };
     
    </script>


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>