Software Archive
Read-only legacy content
17061 Discussions

$.ajax calls failing to connect to web on intel XDK emulator (so does on android build).

AppaRao_c_
Beginner
371 Views

 

 

ajax (post) calls failing with (500: internal server error). POST http://www.gocrabee.com/raoapps/app/event_feed.php 500 (Internal Server Error) it used to work before in previous versions. i have got intex XDK version 2170. also works with //localhost (same call ). HERE IS MY code. function event_ajax(data_i){ var opts={ type:"POST", success:function(data){ $(".listitem").click(function(e){ setup_actions(); }) }, url:"http://www.gocrabee.com/raoapps/app/event_feed.php", data: data_i } $.ajax(opts); }

 

it fails on XDK emulator also on android build,   php file does exist, i could access using the browser.   are there any setting that i need to change?   

 

0 Kudos
1 Reply
Swati_S_Intel1
Employee
371 Views

The 500 error suggests something might be wrong on your server side. 

In terms of settings for your project, please follow this Cordova Whitellisting article to use appropriate settings for your app. 

Swati

0 Kudos
Reply