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!

Please help newbie

Status
Not open for further replies.

CRuser89

Programmer
May 18, 2005
79
US
Hello,

I am very new to javascript and vb. There is a piece of code that I need to change. It's basically a menu for an application called menu.asp. I need to check the condition so that when a certain user logs in, for example user1, it will display what i have below. But if it's user2 or user3, the forum link shouldn't display. How can I set a condition for this in javascript? Or would I have to do it w/the vb code? Can someone give me an example? I know I'm being very vague since I'm new to all this coding. Please let me know what other info you need.

Thanks in advance

</tr>
<tr>
<td valign="top">
<table border="0" class="backdrop" cellpadding="0" cellspacing="0" width="100%">
<td valign="middle" align="right">
<a style="cursor:hand;" href="javascript:GetHelp()" class="TabRowText">Help</a><font color="red">&nbsp;-&nbsp;</font>
<a style="cursor:hand;" href="javascript:Forum()" class="TabRowText">Forum</a>
</td>
</table>
</td>
</tr>
</table>
</body>
</html>
 
Yes, if you want user2 and user3 to have no access to user1's information at all, you need to _not_ send it to the client. Almost everyone knows about "View Source."

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top