splinter: ActiveX + Firefox = ? andere Alternativen?

Beitrag lesen

Ja das gibts.

In den Netscape Browser musst du statt new ActiveXObject("Microsoft.XMLHTTP") einfach new XMLHttpRequest() nehmen.
Ein kleines Script zur veranschaulichung:

function GetXmlHttpObject() {
 var objXMLHttp=null;
 if (window.XMLHttpRequest) {
  objXMLHttp=new XMLHttpRequest();}
 else if (window.ActiveXObject) {
  objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");};
 return objXMLHttp};

connection=GetXmlHttpObject();

MfG

splinter