Note that there are some explanatory texts on larger screens.

plurals
  1. POBlank response on cross domain POST Request
    primarykey
    data
    text
    <p>I'll Start with a basic introduction of what i am trying to achieve, basically i am integrating my web application with an ERP(<a href="http://en.wikipedia.org/wiki/Tally_Solutions" rel="nofollow noreferrer">Tally ERP 9</a>) they provide an HTTP/XML API Which is listening on port <code>9002</code> and my application is on port <code>8085</code> so the problem starts here, when I'am trying to make an ajax call for posting some data i'am getting a blank response,even after getting a success, <code>And the request is performing the task perfectly</code> but the only issue is that i am <code>getting a blank response</code> Following is my js </p> <pre><code>function postTallyData() { var XMLData='&lt;ENVELOPE&gt;...&lt;/ENVELOPE&gt;'; var Tallyurl = 'http://localhost:9002'; $.ajax({ url: Tallyurl, type: "POST", data: XMLData, dataType: "text", converters:{"* text": window.String, "text html": true, "text json": jQuery.parseJSON, "text xml": jQuery.parseXML}, crossdomain: true, complete:function(responseXML){ alert(responseXML); var xml = responseXML, xmlDoc = $.parseXML(xml), $xml = $(xmlDoc), $CREATED = $xml.find("CREATED"); $ALTERED = $xml.find("ALTERED"); $LASTVCHID = $xml.find("LASTVCHID"); $LASTMID = $xml.find("LASTMID"); $COMBINED = $xml.find("COMBINED"); $IGNORED = $xml.find("IGNORED"); $ERRORS = $xml.find("ERRORS"); if(parseInt($ERRORS.text())&gt;0) { $LINEERROR = $xml.find("LINEERROR"); jAlert($LINEERROR.text()); } if(parseInt($CREATED.text())&gt;0) { $LINEERROR = $xml.find("LINEERROR"); jAlert("Voucher : "+$LASTVCHID.text()+" Created in Tally"); } } }); } </code></pre> <p>and here is the firebug screenshot</p> <p><img src="https://i.stack.imgur.com/LI48R.png" alt="Request and Response Headers"></p> <p><img src="https://i.stack.imgur.com/LZMvf.png" alt="Blank Response"></p>
    singulars
    1. This table or related slice is empty.
    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. 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