in reply to Re^2: perl scripter error ReferenceError: The variable ActiveXObject has not been declared
in thread perl scripter error ReferenceError: The variable ActiveXObject has not been declared

Hi,

Are you using a different browser?
This is the code I use.

try { // Firefox, Opera 8.0+, Safari Http=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { Http=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { Http=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } }

It may catch your error, it's worth a try.

J.C.

  • Comment on Re^3: perl scripter error ReferenceError: The variable ActiveXObject has not been declared
  • Download Code