12-02-2018 02:19 - edited 12-02-2018 02:20
12-02-2018 02:19 - edited 12-02-2018 02:20
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.
Best Answer12-02-2018 11:36
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
12-02-2018 11:36
Yes, assuming you're trying to get an AJAX-like response from a server.
Best Answer12-02-2018 11:24
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
12-02-2018 11:24
It sounds like you're developing for a web site. Fitbits don't have HTML. Try using fetch().
Best Answer12-02-2018 11:31
12-02-2018 11:31
You suggest to use fetch() instead of xmlhttprequest ?
Best Answer12-02-2018 11:36
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
12-02-2018 11:36
Yes, assuming you're trying to get an AJAX-like response from a server.
Best Answer12-02-2018 11:52
12-02-2018 11:52
Yes, the response will be json file
Best Answer