I'm trying to load a web page in the leftFrame based on what group the user is a member of on the network. I think the code to determine the User Gruop is correct, but I can't get anythig to load in the leftFrame. I've tried approx. 50 gazillion different variations, and this is the latest. Any suggestions would be appreciated.
<script language="VBScript">
function User()
LN = Request.ServerVariables("LOGON_USER"
NTLogon = UCase(Right(LN, Len(LN) - InStr(1, LN, "\"))
Dim NewPage, UserType
NewPage = CStr(Request("Page")
UserType = UCase(CStr(Request("Type"))
if UserType = "IS" then
Link = " leftFrame.src = (Link)
else
Link = " leftFrame.src = (Link)
end if
<!--"Homes/bod/default.htm" -->
end function
</script>
</head>
<frameset cols="200,*" rows="*" frameborder="NO" border="0" framespacing="0">
<frame src="vbscript:user()" name="leftFrame" scrolling="no" noresize id="leftFrame" >
esize id="leftFrame" >
<frameset rows="220,*" cols="*" framespacing="0" frameborder="NO" border="0">
<frame src="top.htm" name="topFrame" scrolling="no" noresize id="topFrame">
<frame src="main.asp" name="mainFrame">
</frameset>
</frameset>
<script language="VBScript">
function User()
LN = Request.ServerVariables("LOGON_USER"
NTLogon = UCase(Right(LN, Len(LN) - InStr(1, LN, "\"))
Dim NewPage, UserType
NewPage = CStr(Request("Page")
UserType = UCase(CStr(Request("Type"))
if UserType = "IS" then
Link = " leftFrame.src = (Link)
else
Link = " leftFrame.src = (Link)
end if
<!--"Homes/bod/default.htm" -->
end function
</script>
</head>
<frameset cols="200,*" rows="*" frameborder="NO" border="0" framespacing="0">
<frame src="vbscript:user()" name="leftFrame" scrolling="no" noresize id="leftFrame" >
esize id="leftFrame" >
<frameset rows="220,*" cols="*" framespacing="0" frameborder="NO" border="0">
<frame src="top.htm" name="topFrame" scrolling="no" noresize id="topFrame">
<frame src="main.asp" name="mainFrame">
</frameset>
</frameset>