What do I have to change to run a normal Ajax in PhoneGap?

六月ゝ 毕业季﹏ 提交于 2020-04-07 08:26:12

问题


I want to make an Ajax request in a PhoneGap application. I tried it with my normal website code which runs perfectly fine but in PhoneGap nothing happened when I pressed the button which should start the Ajax. Does anyone know what i have to change on the code or other settings in PhoneGap?

This is my Ajax code:

$.ajax({
      type: "POST",
      url: "https://qurusre.de/Marksutus.N.php",
      data: {nummer: nummer,status: status,IdSchueler:IdSchueler,},
      success: function(data) {}
})

来源:https://stackoverflow.com/questions/60436833/what-do-i-have-to-change-to-run-a-normal-ajax-in-phonegap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!