Jump to content

activeXObject not defined..help!


mcerveni

Recommended Posts

Anytime i put this:

<script type="text/javascript">
    var WshNetwork=new ActiveXObject("WScript.Network") 
    var ca = WshNetwork.UserName; 
    alert(ca);

</script>

 

the browser IE or firefox will give me this error:

 

Error: ActiveXObject is not defined

Source File: http://localhost/stats/index.php

 

 

what I don't get is.. if I make a blank page and put that piece of javascript in the <head> section. it will work.

 

For whatever reason, my site's i come up with once they're done - that active x code will not run lol...

 

i neeed to figure out why.

 

here is my header.php page ..

 


<?php 
session_start();
?>

<html>
<?php include('config.inc.php');
      include('functions.inc.php');
?>

<head>
<?php if(isset($_SESSION['logged_in'])) { ?>
<title> Team Coach Center - <?php echo $_SESSION['tc_name'];?> </title>
<?php } else { ?>
<title> Team Coach Center </title> <?php } ?>



<link rel="stylesheet" type="text/css" href="style/style.css">
<script type="text/javascript" src="scripts/func.js"> </script>
<script type="text/javascript" src="scripts/mt1.1.js"> </script>

</head>

<body>

<div id="dim"> </div>
<div id="dimContent"> </div>






<div id="check"> </div>

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.