Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Need Help On Javascript! Please! :-)

    I am created a website and I want a page to be displayed like (google.com) if the correct password is in the JavaScript document. After getting help I will encode it to prevent people from knowing the password.

    I don't want a password prompt. Just a password in the script. And if the password is correct have the page automatically redirect you to another page.

    Thank you so much!
    [/SIZE]

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    The likely reason no one has helped you yet is because javascript is not the solution for password protection. People can STILL see it in the source.

    You need to use a server side language for this.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The reason is, I am encrypting the code.

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,079
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    Quote Originally Posted by jonester View Post
    The reason is, I am encrypting the code.
    Any client-side encryption is quite insecure.

    Nor do I understand what you mean by
    " ....... if the correct password is in the JavaScript document."

    Are you quite sure that you know what you are doing?

  • #5
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes, I know what I'm doing. I have a mission. It is just going nowhere. Because my field is not javascript.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •