Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: perl scripter error ReferenceError: The variable ActiveXObject has not been declared

by Anonymous Monk
on Aug 03, 2012 at 03:33 UTC ( #985143=note: print w/ replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985143]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-12-19 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (94 votes), past polls