Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2008

Tip: Looking for answers? Try searching our database.

Change password Databse

Thread view: 
sp - 23 Mar 2008 09:48 GMT
    <SCRIPT LANGUAGE=javascript>

        function gobut_onclick()
        {
            if (blank(document.frmHome.txtUserId.value))
            {
                alert("User Login Id can not be blank ");
                document.frmHome.txtUserId.focus();

            }
            else if (blank(document.frmHome.txtPassword.value ))
            {
                alert("Password can not be blank ");
                document.frmHome.txtPassword.focus();

            }
            else
            {
                document.frmHome.action = "ProgramFile/Misc/login.asp";
                document.frmHome.submit() ;

            }
        }

    /*    function Enter(e)
        {
            if (event.keyCode == 13)
            {
                if (Checkvalid()==true)
                {
                document.frmHome.action = "ProgramFile/Misc/login.asp"
                document.frmHome.submit()
                return true
                }
            }
        }

    */

        function Enter(e)
        {   //document.captureEvents(Event.Keypress);
            //var keyChar = String.fromCharCode(e.which);
            //alert(e.which)
            //if (keyChar == 'A' || keyChar == 'a')
            //return false;

            if (e.keyCode == 13)
            {
                if (Checkvalid()==true)
                {
                document.frmHome.action = "ProgramFile/Misc/login.asp"
                document.frmHome.submit()
                return true
                }
            }
        }

            function Checkvalid()
            {
                if (blank(document.frmHome.txtUserId.value))
                {
                    alert("UserLogin Id can not be blank ")
                    document.frmHome.txtUserId.focus()
                    return false
                }
                else if (blank(document.frmHome.txtPassword.value ))
                {
                    alert("Password can not be blank ")
                    document.frmHome.txtPassword.focus()
                    return false
                }
                else
                {
                    return true
                }
            }

            function cmdsrch_onclick()
                {
                    if (blank(document.frmHome.txtenter.value))
                    {
                        alert("Enter text to search.")
                        document.frmHome.txtenter.focus()
                        return false
                    }
                    else if (validtext(document.frmHome.txtenter.value))
                    {
                        alert("Please don't use >%'< characters.")
                        document.frmHome.txtenter.focus()
                        return false
                    }
                    else
                    {
                        document.frmHome.target="_new"
                        document.frmHome.action="ProgramFile/Services/CISCESearch.asp"
                        document.frmHome.submit()
                        return true
                    }
                }

            function window_onload()
                {
                    var strErrMsg
                    strErrMsg = ''
                    if (!blank(strErrMsg))
                    {
                        alert(strErrMsg)
                    }
                }

        </SCRIPT>

//This is a segment from a web document html code. I need to change
the function where the user can login. Instead of using the current
database, i would like the page to open a different database on my
computer for the username and password. Even simply limiting the login
to a single account (eg: username-bond and password-bond) only will
do. Can anyone help me with this?? I don not want any other changes.
Thnx a ton.
sp - 23 Mar 2008 09:56 GMT
Hey sorry guys. I solved my problem but got one more problem. What
should I put in my database?? I mean what should be the format of my
database???
RedGrittyBrick - 23 Mar 2008 11:33 GMT
> Hey sorry guys. I solved my problem but got one more problem. What
> should I put in my database?? I mean what should be the format of my
> database???

You posted some Javascript that references ASP (login.asp). This is a
Java newsgroup.

Javascript is not Java. [1]
ASP is not Java.

I suggest you locate a Javascript or ASP newsgroup and post your
question there.

[1] http://www.ericgiguere.com/articles/javascript-is-not-java.html

Signature

RGB

Sabine Dinis Blochberger - 24 Mar 2008 12:37 GMT
> Hey sorry guys. I solved my problem but got one more problem. What
> should I put in my database?? I mean what should be the format of my
> database???

See comp.databases, alt.comp.databases, comp.databases.theory for
database design issues. Look up ERD (entity relationship diagrams).
Signature

Sabine Dinis Blochberger

Op3racional
www.op3racional.eu

Roedy Green - 24 Mar 2008 13:08 GMT
>//This is a segment from a web document html code. I need to change
>the function where the user can login. Instead of using the current
>database,

That is JavaScript not Java.  You might get more answers asking in a
JavaScript newsgroup.

See http://mindprod.com/jgloss/javascript.html
Signature


Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.