Note that there are some explanatory texts on larger screens.

plurals
  1. POJSON post using jQuery is working fine with FF, Chrome & Safari but does not work in IE8
    primarykey
    data
    text
    <p>I have to <strong>Post Email and Password</strong> to my REST Service and it is hosted on different domain and i have allowed cross domain origin to * for access any cross domain request. and this is <strong>Working fine</strong> </p> <ul> <li>with FF 16</li> <li>Chrome 22</li> <li><p>Safari 5</p> <p>but <strong>it is not working in IE 8.0</strong></p></li> </ul> <p>I have tried several approach to resolve but still i m looking for solution.</p> <pre><code>&lt;input type="button" value="POST" onclick="postData();" /&gt; //Call authorization process function postData() { var url = 'http://www.mydomain.com/authorize'; var data = { 'email': 'myemail@gmail.com', 'password': 'mypassword' }; jQuery.post(url, data, authorizeCallback, 'json'); } jQuery.extend({ post: function (url, data, callback, type, errorcallback) { return _ajax_request(url, data, callback, type, 'POST', errorcallback); } }); function _ajax_request(url, data, callback, type, method, errorcallback) { if (typeof errorcallback == 'undefined') errorcallback = defaulterrordisplay; return jQuery.ajax({ type: method, url: url, data: data, success: callback, dataType: type, error: errorcallback }); } //Callback from authorization process function authorizeCallback(data, textStatus, jqXHR) { /*Here i am getting Message : 'Invalid email or password' only for IE, otherwise it will return Message : "OK" with Authorization ID and Token */ } </code></pre> <p><strong>Note:</strong> i am using pure HTML no server technology are used. and everything are working fine with all browsers except IE8.</p> <p>Seeking for your best answer and suggestion for the same.</p> <p>Thanks and Regards,</p> <p>Imdadhusen</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.
 

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