Preformatted text
Hi,
I’m trying to call an external web service from my app, but nothing happens after Ajax call
My Ajax call:
$.ajax({
beforeSend: function() {
// $.mobile.loading( 'show' );
},
type: "POST",
url: "http://localhost/getPrenotazione/" + numero,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(data){
if(data.success){
db.transaction(function (tx) {
$.each(data.results, function(i, lista) {
});
and this is my route
Router::connect('/getPrenotazione/*', array('plugin' => 'checkin', 'controller' => 'Prenotazione', 'action' => 'edit'));
I think the problem is due to the .htaccess or index.php file, but I don’t know hot to set it.
How can I check if the route is working? (I’ve checked the web service and it works fine).
Thank you in advance!