I have to use an ActiveXObject into my site.
I have read that is only for IE but is there some way to escpae this problem?
Because I need to take an XML from a server and this company told me to use a code like this to retrieve data in XML
<script type="text/javascript">
var g_XMLReq = new ActiveXObject("Microsoft.XMLHTTP");
g_XMLReq.open("POST", "LINK",false);
g_XMLReq.send(unsescape(XMLdata));
</script>
I think that is impossible to escape this problem? I have only to use IE?! And the user that navigate the site? Not all use IE only a little part.
Non-ActiveX versions of XMLHttpRequest have been in browsers for many years. Even Internet Explorer has supported the native version since version 7. You appear to have been given some instructions that predate 2006.
Replace
new ActiveXObject("Microsoft.XMLHTTP");withnew XMLHttpRequest(). (Unless you need to support IE 5/6 in which case you’ll have to try/catch it and the ActiveX version)