An active X Control, usging
JS - Some back ground:
1. Place this OCX (30kb) and the HTML file on the server. Codebase defines the path to the ocx so if they are not in the same directory then change accordingly
2. The OCX does NOT have to be registered on the server using regsvr32
3. Success in running OCXs (ActiveX objects) from within a browser will depend on the Browser security settings.
Then run the following page:
<HTML>
<HEAD>
<OBJECT Name="FindUser"
classid="clsid:xxxxxxxxxxxxx-00FC-484C-ACE0-xxxxxxxxxxxxxxxx"
codebase="xxxxxxxxxxxxxxxxxxxxx.ocx#version=1,0,0, 0"
>
</OBJECT>
</HEAD>
<BODY>
<H1> ActiveX Test Page </H1><p>
<p>
<span id="user">Logged on user: </span>
</p>
<form>
<input type="hidden" id="formVar">
</form>
<SCRIPT language="JavaScript">
document.all.user.innerHTML = 'Logged on user: ' + FindUser.UserLogon();
document.all.formVar.value = FindUser.UserLogon();
</script>
</BODY>
</HTML>
Works like a charm however is our propriety software.
Sorry that doesnt help you however it gives you an idea of how I do it
Wind is your friend
Matt