XMLHttpRequest [message #1841729] |
Thu, 27 May 2021 02:41 |
Jose Maria Argudo Messages: 1 Registered: May 2021 |
Junior Member |
|
|
It's the first time I use eclipse for coding java but I needed to try eclipse because I have to use webdriver services. I need to check if a website exists so I want to create a XMLHttpRequest object in order to see the status attribute but when I use the XMLHttpRequest constructor, it says that XMLHttpRequest can't be resolved to a type so I searched for a solution but any of them has worked. I have installed it with npm, I have tried to do:
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
var xhr = new XMLHttpRequest();
However it doesn't recognize require method, ¿How can I fix this problem?
|
|
|
Powered by
FUDForum. Page generated in 0.08277 seconds