[Javascript] General design question

Bill Marriott bill.marriott at optusnet.com.au
Mon Jul 16 15:00:29 CDT 2001


RE: [Javascript] General design questionBob,

Do you mean store a list of all the links in a table and flag them Admin Yes or No?
Then use something like:

if  (after SQL in link table) tblLink.fldAdmin = true then
<a href="link.asp">Link</a>
end if

Bill

  ----- Original Message ----- 
  From: Filipiak, Bob (Contractor) 
  To: 'javascript at LaTech.edu' 
  Sent: Monday, July 16, 2001 10:12 PM
  Subject: RE: [Javascript] General design question


  Better yet, since you are using a DB why not modify the table to have a column with a Admin flag for those links that are for Admin only and validate the visitor against the db that way you don't have to rely on cookies being enabled. Just a thought.

  Bob Filipiak (Contractor) 
  MCP 

  -----Original Message----- 
  From: Andrew Dunn [mailto:adunn at mail.interworx.com.au] 
  Sent: Sunday, July 15, 2001 8:01 PM 
  To: javascript at LaTech.edu 
  Subject: RE: [Javascript] General design question 



  if you are using asp why not use a session variable to hold the user state 
  (if admin or not)? If the session variable ie. session("admin") = true then 
  display links or not display links. 

  if session("admin") = true then 
          <a href="link.asp">Link</a> 
  end if 
  --------%< Snipped %<---------------------------------------- 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010717/5c7fcaed/attachment.htm>


More information about the Javascript mailing list