Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One frameset, two different uses

Status
Not open for further replies.

dfwalton

Programmer
Jul 24, 2002
143
When users log on, they are either managers or schedulers. I nhave been using two framesets (MgrFrame and SchedFrame) but that isn't working out too well. The contents for Managers and Scheds overlap, but some actions are only available to one group nor ther other.
I can't figure out how to initially populate the same three frames within the frameset, depending on the user type.

Two questions: I am going about this the right way? If so, what's the solution?

Many thanks

David
 
Never mind, I figured it out all by myself.
Using coldFusion I did the following:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>

<body>
<cfif trim(ListGetAt(getAuthUser(), 4)) EQ 5>
<cfset Session.Top=&quot;portMgrHead.cfm&quot;>
<cfelse>
<cfset Session.Top=&quot;portSchdHead.cfm&quot;>
</cfif>
<form action=&quot;MgrFrame.cfm&quot;><input type=&quot;submit&quot; name=&quot;BtnTest&quot; Value=&quot;Go&quot;></form>
</body>
</html>

This worked!

David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top