Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Edited</strong></p> <blockquote> <p>Still there is no fix from Microsoft for this except using </p> <p><code>&lt;meta http-equiv="x-ua-compatible" content="IE=9" &gt;</code></p> <p>by add the above meta tag, IE10 will run your javascript in IE9 compatible mode.</p> </blockquote> <p>Old answer.</p> <p>i am posting the sample code for the test that i made, and you can also utilize the same code for your code.</p> <pre><code>&lt;html&gt; &lt;head runat="server"&gt; &lt;script src="../Scripts/jquery-1.8.3.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; var xmlHttp = null; var XMLHTTPREQUEST_MS_PROGIDS = new Array( "Msxml2.XMLHTTP.7.0", "Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.5.0", "Msxml2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP" ); function makePOSTRequest(url, parameters) { if (window.XMLHttpRequest != null) { //xmlHttp = new window.XMLHttpRequest(); xmlHttp = new ActiveXObject('Microsoft.XMLHTTP'); } else if (window.ActiveXObject != null) { // Must be IE, find the right ActiveXObject. var success = false; for (var i = 0; i &lt; XMLHTTPREQUEST_MS_PROGIDS.length &amp;&amp; !success; i++) { alert(XMLHTTPREQUEST_MS_PROGIDS[i]) try { xmlHttp = new ActiveXObject(XMLHTTPREQUEST_MS_PROGIDS[i]); success = true; } catch (ex) { } } } else { alert("Your browser does not support AJAX."); return xmlHttp; } xmlHttp.onreadystatechange = alertContents; xmlHttp.open('POST', url, true); xmlHttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded; charset=UTF-8'); //xmlHttp.setRequestHeader('Content-type', 'application/json;'); xmlHttp.setRequestHeader('Content-Length', parameters.length); xmlHttp.setRequestHeader('Accept', 'text/html,application/xhtml+xml') //xmlHttp.setRequestHeader('Connection', "close"); xmlHttp.send(parameters); } function alertContents() { // alert( this.status ); if (xmlHttp.readyState == 4) { //alert( this.responseText ); if (xmlHttp.status == 200) { var result = xmlHttp.responseText; // document.getElementById('result').innerHTML = result; // document.getElementById('submitbutton').disabled = false; alert(result); } else { //alert( this.getAllResponseHeaders() ); alert("There was a problem with the request."); } } } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;a href="javascript:makePOSTRequest('/api/jobs/GetSearchResult','jtStartIndex=0&amp;jtPageSize=10&amp;jtSorting=jobDescription ASC&amp;jobDescription=')"&gt;Click me please&lt;/a&gt; GetJobDetail &lt;br/&gt;&lt;br/&gt; Url: &lt;input type="text" id="url" value="/api/jobs/GetSearchResult"/&gt;&lt;br/&gt; parameters: &lt;input type="text" id="parameters" value="jtStartIndex=0&amp;jtPageSize=10&amp;jtSorting=jobDescription ASC&amp;jobDescription="/&gt;&lt;br/&gt; submit : &lt;input type="button" id="callMethod" value = "call" onclick="javascript: makePOSTRequest($('#url').val(), $('#parameters').val())"/&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload