AJACK62659
Programmer
With some experience in javascript I have a script that checks the Windows 200 login id of a user this is embedded on a web page.
Code Below
Q: How would I re-create this as a java applet and call the funtion from the web page on load.
I cannot use an asp include file becasue it must not be a script language thus I have turned to a compiled Java Applet.
Thanks Beforehand
AJ
*****************************
Code:
function auto_login() {
var WshNetwork
WshNetwork = new ActiveXObject("WScript.Network"
if (WshNetwork <> ""
{
var strUserName = WshNetwork.UserName;
document.dialogForm.DMW_USER.value = strUserName;
document.dialogForm.DMW_PASSWORD.value = strUserName;
}
else
{
alert ("You must select Yes to access the COMeT Application."
}
}
Code Below
Q: How would I re-create this as a java applet and call the funtion from the web page on load.
I cannot use an asp include file becasue it must not be a script language thus I have turned to a compiled Java Applet.
Thanks Beforehand
AJ
*****************************
Code:
function auto_login() {
var WshNetwork
WshNetwork = new ActiveXObject("WScript.Network"
if (WshNetwork <> ""
{
var strUserName = WshNetwork.UserName;
document.dialogForm.DMW_USER.value = strUserName;
document.dialogForm.DMW_PASSWORD.value = strUserName;
}
else
{
alert ("You must select Yes to access the COMeT Application."
}
}