Click here to get back home

Change password Databse

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Change password Databse sp 03-23-2008
Posted by sp on March 23, 2008, 4:48 am
Please log in for more thread options
        <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.

Posted by Scott Bryce on March 23, 2008, 8:50 am
Please log in for more thread options
sp wrote:

<JavaScript snipped>

> This is a segment from a web document html code.

No, it is JavaScript.


> 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.

That appears to be happening in an ASP page.

I think you posted to the wrong newsgroup. It looks to me like you want
to tweak the ASP page that the JavaScript calls.

Similar ThreadsPosted
password protection September 21, 2005, 7:23 am
Include user ID and password in a link? November 15, 2006, 6:32 am
hotmail password request tool (intranet usage) April 18, 2005, 6:12 am
How can I change the value in a css class? October 18, 2005, 9:04 am
change bgColor March 10, 2006, 9:13 am
change CSS definition by javascrip May 13, 2005, 2:07 pm
Formmail form "From:" how to change June 21, 2005, 5:45 pm
Website needs refresh to change May 15, 2007, 10:06 am
change link colors in p class September 30, 2004, 6:18 pm
Table cells change size March 1, 2005, 9:02 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap