• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UserID Validation

 
Michael.H.Sun
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends,
Can anyone there tell me how to do the following with javascripts:
 If login id/password combination does not match database, then display message �Login ID or Password incorrect. Please enter valid Login ID and Password.�
 If login id/password combination does match database, then re-direct user to home.asp.
Thanks.
Michael H. Sun
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a lot of different ways to achieve what you are talking about. Could you answer a few things first?
1) Is this an internet or an intranet application?
2) If intranet, is there a targeted browser?
3) Are you using an n-tier architecture?
4) What technology are you using to script the server?
5) What technology are you using to script the client?
 
Randall Twede
Ranch Hand
Posts: 4363
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, client-side script cannot access a database on the server. There is server side javascript that can. It is refered to as "live wire" http://developer.netscape.com/docs/manuals/communicator/jsref/index.htm
chapter 10
I have my own Apache server and it is configured so that to access a certain page a dialog pops up asking for user name and password(I have to run a dos program to encript and add a user name and password to a file). or you can use any server side scripting or cgi or servlet or jsp to check against stored values in a database(or flat file) as you are thinking.

[This message has been edited by Randall Twede (edited August 07, 2001).]
[This message has been edited by Randall Twede (edited August 08, 2001).]
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is at least one client-side data access technology that I am aware of, but it is MS-only. It's called RDS (Remote Data Services) and it allows a developer to access COM components or databases from JavaScript on the client-side. However, as this only works with IE5.0 and above and MDAC 2.1 and above, it isn't a good solution for the internet. Which brings me back to this question:
Is this application internet or intranet?
RDS is pretty simple to implement if the environment is right. Otherwise, you are looking at ASP/JSP/CGI/Perl to access information in a database.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is at least one client-side data access technology that I am aware of, but it is MS-only. It's called RDS (Remote Data Services) and it allows a developer to access COM components or databases from JavaScript on the client-side. However, as this only works with IE5.0 and above and MDAC 2.1 and above, it isn't a good solution for the internet. Which brings me back to this question:
Is this application internet or intranet?
RDS is pretty simple to implement if the environment is right. Otherwise, you are looking at ASP/JSP/CGI/Perl to access information in a database.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic