Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » XMLHttpRequest(Error )
XMLHttpRequest [message #1841729] Thu, 27 May 2021 02:41
Jose Maria Argudo is currently offline Jose Maria ArgudoFriend
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?
Previous Topic:Eclipse
Next Topic:How do I suppress log4j logging from org.eclipse plugins?
Goto Forum:
  


Current Time: Fri Apr 19 19:55:29 GMT 2024

Powered by FUDForum. Page generated in 0.08277 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top