ajax error response in xamarin.ios -
i make app ios using xamarin.ios , use webview in .chtml file call webservice using ajax following code
<script> $(document).ready(function () { $.ajax({ type: "get", url: 'http://www.chc-sa.com/webservice/aboutus', error: function (xhr, status, error) { //do error document.getelementbyid("net").textcontent = "network error"; }, success: function (response, $id) { //do response document.getelementbyid("details").innerhtml = response.details.replace(/(?:\r\n|\r|\n)/g, '<br />'); } }); //----------------------------------- }); </script>
code fire error not excute success , code work fine in xamarin.android or windowsphone in xamarin .ios when run in simulator mac show error
is there configuration in xamarin.ios execute ajax code correctly? or in iphone mobile?
Comments
Post a Comment