Skip to main content



      Home
Home » Newcomers » Newcomers » XMLHttpRequest(Error )
XMLHttpRequest [message #1841729] Wed, 26 May 2021 22:41
Eclipse UserFriend
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: Thu Jul 17 06:59:26 EDT 2025

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

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

Back to the top