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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -