How can I use Javascript in BB10

801 views javascript
1

can you help me? I try make app for BlackBerry 10. I am new developer. How can I use javascript with my app? Thank you very much.

answered question
Add a Comment

1 Answer

5

var data = "{}";
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});
xhr.open("GET", "https://api.themoviedb.org/3/search/movie? 
include_adult=false&page=1&query=iron%20man&language=en- 
US&api_key=%3C%3Capi_key%3E%3E");
xhr.send(data);

posted this

Please login first before posting an answer.

Ads

Categories