Can't return data from postgresql through Ajax Request in real device i.e. Android Phone -
i'm using cordova 6.5. here's javascript
function my() { var modulecode = document.getelementbyid("modulecode"); //ll $.ajax({ url:"http://192.168.x.xxx/testconn.php", method:"post", datatype:"json", cache:false, data:{modulecode:modulecode.value}, success: function(html){ var dom =jquery("#dom"); dom.empty(); jquery.each(html,function(key,value){ dom.append("<li>" + value.module_name + "</li>") }); }, error: function(e){ alert("error : " + e.message); } }); }
when put error.code in error callback returns scripted minified form javascript return "undefined"
Comments
Post a Comment