Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: reload body frame


Message #1 by sebrechts@h... on Thu, 23 Jan 2003 14:43:33
Hi Tom

From what you have posted it's hard to see what might be causing the 
problem, but I can take a few guesses:

1. What is the datatype of DateRs.fields("Picture")? If it's a picture, 
this may cause the problem.

2. How do you store: Session("Privileges")
Although VBScript is not case-sensitive, comparing strings is. So if you 
store Session("Privileges") as "admin" the following code will not run:

    if Session("Privileges") = "Admin" then

3. Are you sure that the login code that sets these variables is run 
before you actually display the body frame? Maybe the page gets already 
loaded before the session variables are set.

Other than this, it's hard to say anything without seeing the other 
pages. If you want, you can send me a zipped version of your pages 
(without password stuff of course) so I can take a look at it.

Cheers,

Imar



> Imar,

> I use asp pages and an access DB.
t> he Db itself has been protected by a password.
w> hen the user log on the password he/she typed is matched with the 
p> assword in the db for that userid.

> maybe not the bast way to protect my data, but the data is not that 
c> ritical.

> the page has been divided as :
_> _________
|>  |      |
|> N|BODY  |
|> A|      |
|> V|      |
|>  |      |
-> ---------

> the left part (NAV) has following code:

<snip>

  Return to Index