• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

UserID Validation

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic