Hi, Kevin! I had a look at the presentation-examples. Sure, that way works. In my example i tried out something like this, which works also:
<form name="Form"> <input type="text" name="User"> <input type="password" name="Password"> <input type="button" name="Login" value="Login" onClick="return #server(..Login(Form.User.value,Form.Password.value))#;"> </form> <script language="CACHE" method="Login" arguments="User:%String,Password:%String" returntype="%Boolean"> ... if "wronglogin was entered" q 0 &js< self.document.location='Main.csp';> q 1 </script> The disadvantage of this solution is, you have to click at the LoginButton. In a Submit-Form you just need to press ENTER. So i'd prefer the other version (which still is not working). Any ideas?!? Ralf "kevin furze" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > there is a good working example of logging in (and detecting if > password has been entered) on the Mgateway utility site. > > look for the "Advanced CSP Presentation" - its written by Peter Cooper, > I just happen to post it to the utility site (with peter's permission > of course) > > in this presentation, every page inherits a "master page" that detects > if the password has been entered, if it has, then it allows > continuation else it forces the password to be entered. > > take a look - its a nice simple bit of code. > > kev >
