March 24, 200223 yr Hi All, Using the FM Article #105365 "Forcing Web Companion to Require Password upon Site Entry", I created my CDML page which works fine. However, when an incorrect username/password combo in entered, you get the error message (no access to find all) and then the browser shows a blank page... I added the -error tag as shown below: <META HTTP-EQUIV="refresh" content = " 1; URL=FMPro?-db=Database.fp5&-lay=web&-format=login.html&-Error=mainerror.html&-FindAny"> I thought that if an incorrect password/username was entered, it would load my mainerror.html page... But that does not happen, I just get the blank page. Am I doing something wrong... Is there a better way to handle this? I would just like the user to get an error message on a page, and have that page give them the opportunity to try again. Thanks for your help! Jerremy [ March 24, 2002, 09:10 AM: Message edited by: Jerremy ]
March 24, 200223 yr You could place an error message, with a 'back' button, on the page with the 'META refresh'. I think that the Web Companion is only communicating at the http level during the authentication process and will not allow any format file access. A pity though! All the best. Garry
March 24, 200223 yr Author Hi Anatoli, I'm not sure what you mean by FM "protected" pages... I'd like to somehow display an error page when someone makes a mistake with their username/password, it let's them know that they made the mistake, and shows a button to click to retry. When they click, it just reloads my index.html page to trigger the username/password dialog. There has to be something... I don't want to leave users at a blank page not knowing what to do next... Thanks for you help! Jerremy
March 25, 200223 yr Author Hello again, Thanks Garry. So you think I have it correct, it's just that the WC won't allow the error file...? Let me explain a little more... A user would hit my page: http://www.mypage.com. They would get the username and password dialog box immediately, as the code I posted is my index.html. When an incorrect username/password combo is given, they get the error message and then they are stuck on the blank index.html file. I don't want to put any other data in there - like a retry button and error message, because that will be the first thing they see when they hit the page... Even though it has the refresh... Any ideas? Thanks again, Jerremy
March 25, 200223 yr I am using 3 schemes of how to get to FM "protected" pages. If I will understand what you trying to achieve, I can help.
Create an account or sign in to comment