A
A
Anton Ulanov2016-03-05 00:30:56
Apache Cordova
Anton Ulanov, 2016-03-05 00:30:56

How to perform ajax in Cordova?

Good time of the day. How to make an ajax request in index.js
as an example

var settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://192.168.0.130/hello",
  "method": "GET",
}

$.ajax(settings).done(function (response) {
  console.log(response);
});

Thanks in advance for the tip

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey A, 2016-03-05
@antonsr98

Just like usual. Just don't forget about access origin .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question