12-02-2018 02:19 - edited 12-02-2018 02:20
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-02-2018 02:19 - edited 12-02-2018 02:20
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
while i'm trying to use the module xmlhttprequest i recive the following error : "Unhandled Error: Cannot find module 'xmlhttprequest'".
i'm using this module to recive information based on your actual position from a remote server throught get/post request.
how can i solve this error ?
Answered! Go to the Best Answer.

- Labels:
-
JavaScript
Accepted Solutions
12-02-2018 11:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


12-02-2018 11:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Yes, assuming you're trying to get an AJAX-like response from a server.
Gondwana Software

12-02-2018 11:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


12-02-2018 11:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
It sounds like you're developing for a web site. Fitbits don't have HTML. Try using fetch().
Gondwana Software

12-02-2018 11:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-02-2018 11:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
You suggest to use fetch() instead of xmlhttprequest ?

12-02-2018 11:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


12-02-2018 11:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Yes, assuming you're trying to get an AJAX-like response from a server.
Gondwana Software

12-02-2018 11:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-02-2018 11:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Yes, the response will be json file

