Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 scrutinizing the Monastery: (14)
As of 2015-07-06 11:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (72 votes), past polls