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.
Page 3 of 8 FirstFirst 12345 ... LastLast
Results 31 to 45 of 115
  1. #31
    Regular Coder
    Join Date
    Aug 2002
    Location
    Spain
    Posts
    420
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://myweb.tiscali.co.uk/streetracer/LoginPage.htm works for me (as you uploaded the original example). The problem must be in your new .js file
    Don't resist to assimilation. Billions of Borgs can't be wrong!

  2. #32
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Might help if you included the temporary username and password you're trying out, so we can see the error you're getting.

    If I use

    Codding

    Forums

    It works just fine.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  3. #33
    New Coder
    Join Date
    Feb 2003
    Location
    dudley west mids uk
    Posts
    90
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well it takes me to a tiscali ;age saying that the page can not be founf, eroor 404 i think
    HASAAKI v.2.0 now up come and visit us at http://www.online-addicts.com/~joehall

  4. #34
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Right, so you don't have a valid URL in your .js file.

    No way we can help you though, without you posting your code - actually this shouldn't be in this thread, you should post this in the javascript forum, or a moderator for this forum should move it, since this isn't a problem with the script itself.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  5. #35
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    P.S. To the general community, and Borgtex, I'm wondering if we should "clean up" some of these posts, down the road, or whatever - since questions like this (and the responses) shouldn't really be part of the script thread...
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  6. #36
    Regular Coder
    Join Date
    Aug 2002
    Location
    Spain
    Posts
    420
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by whammy
    P.S. To the general community, and Borgtex, I'm wondering if we should "clean up" some of these posts, down the road, or whatever - since questions like this (and the responses) shouldn't really be part of the script thread...
    Yes, I agree. In any case, moderators have the final say...
    Last edited by Borgtex; 03-04-2003 at 04:23 AM.
    Don't resist to assimilation. Billions of Borgs can't be wrong!

  7. #37
    New Coder
    Join Date
    Jun 2002
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    password protection with javascript

    Sure could use some help trying to use (secure login with javascript).
    I have been trying diff. ways,no luck.

    Should my password be the same as the page it will open?
    Example: password=index (the page it opens is named index.html)

    Now i have put everything in one directory. loginpage.htm, chkpwd.htm, badpassword.htm, coddingforums.js, index.html.

    thanks

  8. #38
    Regular Coder
    Join Date
    Aug 2002
    Location
    Spain
    Posts
    420
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: password protection with javascript

    Originally posted by collie
    Sure could use some help trying to use (secure login with javascript).
    I have been trying diff. ways,no luck.

    Should my password be the same as the page it will open?
    Example: password=index (the page it opens is named index.html)

    Now i have put everything in one directory. loginpage.htm, chkpwd.htm, badpassword.htm, coddingforums.js, index.html.

    thanks
    I think that it is explained in the first post, but anyway...

    You have to create a .js and name it accordingly. i.e.: if your login is "Tom" and your password "Jerry", you have to create a file named TomJerry.js (that file contains the destination page). You just have to look at the example and adapt it
    Don't resist to assimilation. Billions of Borgs can't be wrong!

  9. #39
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Also, perhaps it will make more sense for you to try it out:

    http://www.solidscripts.com/jslogin/login.htm

    Go there, and type in:

    Username: coding
    Password: forums

    What happens then, is this... the form gets posted to "auth.htm" which tries to include the file "codingforums.js". Since that file exists, javascript then sees that the "auth" variable is true, and redirects you to the URL contained in the variable "redirect".

    If you type

    Username: blah
    Password: I'm tired

    it would try to include the file "blahI'm tired.js" - which won't work, because there is no such .js file.

    So, all you need to create a .js file that is the combination of your username and password (no spaces!)... and then, edit that .js file just like the others...

    http://www.solidscripts.com/downloads/jslogin.zip

    I modified Borgtex's code slightly (just to make it XHTML compatible and clean it up a little bit), but you'll notice that if you open the "codingforums.js" file with notepad, you'll see this:

    auth = true;
    redirect = "http://www.codingforums.com/"

    all you have to do at this point is change the redirect variable to the page you want to redirect to.

    Last edited by whammy; 07-20-2003 at 07:01 PM.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  10. #40
    New Coder
    Join Date
    Jun 2002
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    password protection

    Thanks to everybody. I finally did it.

  11. #41
    New to the CF scene
    Join Date
    Jun 2003
    Location
    Arnhem
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Extra field in the login script

    Hi guys, the script works great.

    I just have a question, I'm trying to create a website with the login script. I want to keep it easy and simple.

    Now I need your help, I want to create on the login page a button with a checkbox (list prices yes or no), but I want to keep the same userid / password. If the checkbox is checked, they need to go to www.motorvoorraad.nl/index12.htm if the box is unchecked it want them to go to wwwm.motorvoorraad.nl/index11.htm. Is this possible??

    Thanks in advance for your help.

    Regards,
    Sander

  12. #42
    Regular Coder
    Join Date
    Aug 2002
    Location
    New York
    Posts
    152
    Thanks
    12
    Thanked 0 Times in 0 Posts
    i have a question that's related to this script. is there a way to create the page for me after the user has submitted the info for their account?

    for example. i'm a random person viewing the website and i want to register an account. i fill in the username and password field to register and it takes that information and creates the .js file and also the .html page that the .js page points to if the username/password is correct. the .html page will be a default page that says "please wait 48 hours for your account to be activated" or something like that.

    so what it needs to do is take the username and password field and combine them to form UsernamePassword.js. my form already makes sure that it's only Username and Password, not uSerName and PASSwoRD (mix of caps and lowercase, so it's just the first letter that is caps, and none of the rest). and then in the .js file that it just created, it points to an .html page that it also just created. and all that is in that html page is "please wait for your account to be activated" or something along those lines.

    right now, i'm under the impression that this is something too complex for JS and/or it's something that my Angelfire host will not let me do. but i have my own .com anyway, so permissions shouldnt be a problem, it's just that i have little to no knowledge of how to do this.

  13. #43
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nope... in order to do that, you need a server-side language (such as ASP or PHP) and a database.

    Otherwise, you're stuck with someone emailing you, and manually creating this stuff.

    Angelfire doesn't offer this as far as I know... but what about your other domain... who hosts it?

    P.S. You should start your own thread in the javascript programming forum, though - this forum is for posting useful scripts, not problems with javascript. Perhaps the appropriate moderator will move it.
    Last edited by whammy; 06-14-2003 at 03:46 AM.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  14. #44
    Regular Coder
    Join Date
    Aug 2002
    Location
    New York
    Posts
    152
    Thanks
    12
    Thanked 0 Times in 0 Posts
    hmm... i wonder where we could find a good moderator that doesnt work for tips...

  15. #45
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Borgtex,

    The password protection code you've posted here does not work in my PC. what could be the possible reasons?


 
Page 3 of 8 FirstFirst 12345 ... LastLast

LinkBacks (?)

  1. 02-22-2014, 08:13 AM

Posting Permissions

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