Go Back   CodingForums.com > :: Client side development > JavaScript programming > Post a JavaScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 14 votes, 3.79 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-22-2005, 10:41 AM   PM User | #76
Vapor
Regular Coder

 
Join Date: May 2005
Posts: 220
Thanks: 1
Thanked 2 Times in 2 Posts
Vapor is an unknown quantity at this point
Exclamation Help

I tried throwing that code into a free web host such as geocities or angelfire and I can't get it to work. Whenever I try to login, I get an error page from either geocities or angelfire. Is it something that can be fixed? Do I have to change the code at all?
Vapor is offline   Reply With Quote
Old 05-23-2005, 05:05 AM   PM User | #77
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
Did you use the tool that whammy developed to create the password file automatically? His post is in page 4 of this thread.
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 05-24-2005, 09:54 PM   PM User | #78
Vapor
Regular Coder

 
Join Date: May 2005
Posts: 220
Thanks: 1
Thanked 2 Times in 2 Posts
Vapor is an unknown quantity at this point
Exclamation Please help

Ok,

THis is exactly what I have done step by step

I downloaded all of whammys files. I then uploaded all of them on my geocities site. I tried to login in and I get an error page from geocities. I have also tried it on angelfire. I am not sure what to do. Here is the link to my site if you want to try it

http://www.geocities.com/christianfobian/login

If you try it, (just put something in the user and password form) you should get the auth.htm page that says authorization failed! in red letters.

All I did was take the straight code upload it and try logging in. Is there something I need to change?
Vapor is offline   Reply With Quote
Old 05-24-2005, 10:00 PM   PM User | #79
Vapor
Regular Coder

 
Join Date: May 2005
Posts: 220
Thanks: 1
Thanked 2 Times in 2 Posts
Vapor is an unknown quantity at this point
crud

now I feel kinda silly,

I just posted my last post and I got the blasted thing to work... PARTLY! I have it so that if I just randomly type info into the user and pass part of the form I get the authorization failed! in read letters page (auth.htm) NOW the problem is I cant login once I use the right username and password!

Any ideas?
Vapor is offline   Reply With Quote
Old 05-24-2005, 10:32 PM   PM User | #80
Vapor
Regular Coder

 
Join Date: May 2005
Posts: 220
Thanks: 1
Thanked 2 Times in 2 Posts
Vapor is an unknown quantity at this point
Thumbs up Finally!

Never mind, I played around with it for about an hour but I figured it out, thx though

Vapor is offline   Reply With Quote
Old 06-16-2005, 09:45 PM   PM User | #81
Doodah
New to the CF scene

 
Join Date: Jun 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Doodah is an unknown quantity at this point
Cookies

Couldn't you use a cookie to validate that someone has logged on? and then have the cookie checked on "page.htm" or any subsequent pages. This would keep people from going around the login page, also adding the index.htm page to the user ID folder.

Ideas?
Doodah is offline   Reply With Quote
Old 06-18-2005, 12:53 AM   PM User | #82
Doodah
New to the CF scene

 
Join Date: Jun 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Doodah is an unknown quantity at this point
Cookie work around

If anyone is interested I did add a cookie to this code and a redirect to the page.htm file. It does keep anyone from going to the page.htm file directly and the cookie expires immediately so anyone returning to the page from history should be blocked. I'm not a programmer, just a designer, so there may be bugs that I'm not aware of. I used an asp script that utilized this code, that's what made me think it should be possible to use it here.

If anyone sees a problem please let me know.

Thanks

doo

Last edited by Doodah; 06-18-2005 at 02:21 AM..
Doodah is offline   Reply With Quote
Old 09-21-2005, 11:29 AM   PM User | #83
pjf1985
New to the CF scene

 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
pjf1985 is an unknown quantity at this point
I am using the jslogin script that was posted in this topic. The script works great and does everything I want it to except for one thing. It directs to my secure/destination page that I want it to, but how do I make the destination page itself really secure so that it cannot just be viewed by typing in the URL to the page?

So for example, when the correct username and password is entered and it goes to the destination page:

http://www.mysite.com/myfolder/mypage.htm

But what is stopping someone from just entering that URL and bypassing the login?

Is there a way for me to properly secure the page or a folder and so I can still use this script? Would using .htaccess do the job? And if so, how would I go about it?

Thanks.
pjf1985 is offline   Reply With Quote
Old 09-21-2005, 04:44 PM   PM User | #84
mw2005
Regular Coder

 
Join Date: Jul 2005
Posts: 352
Thanks: 1
Thanked 0 Times in 0 Posts
mw2005 is an unknown quantity at this point
If you want a 99.9% secure page use .htaccess and not JavaScript (some servers do not allow it though)

Below is a link teaching you about .htaccess (if you don't already know how to use it)

http://www.javascriptkit.com/howto/htaccess.shtml

HTH

MW2005
__________________
Get Mozilla Firefox
mw2005 is offline   Reply With Quote
Old 12-03-2005, 02:27 PM   PM User | #85
dutycalls5609b
New Coder

 
Join Date: Dec 2005
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
dutycalls5609b is an unknown quantity at this point
Love the script, borg. And BTW for the skeptics, it works with all lowercase.
dutycalls5609b is offline   Reply With Quote
Old 12-22-2005, 04:39 PM   PM User | #86
DR.Wong
Regular Coder

 
DR.Wong's Avatar
 
Join Date: Jan 2005
Posts: 358
Thanks: 22
Thanked 1 Time in 1 Post
DR.Wong is an unknown quantity at this point
Smile Can this be used as a database?

Hey guys. I am always looking for a good way to create a JS client side database.

By the looks of it, this is modifyable to create a client side database. Could you not modify the VB Script to ask questions.. such as a persons name and address. The Script makes the JS file that uses the persons name as the file name. Then use a page to display the persons other information from within the JS file?

This sounds completely logical to me... only I dont know much VB either... I may however be able to poke around with the script and change it to add more options.

One problem that seems to circle over and over in my head, is once you have the entire directory full of JS files, how would you bring up a list of them, so you could click on a users name and that pull out the info, without you having to manually index the directory.

Is it viable???

I really would like your input, this is troubling me!!!

Thanks alot and MERRY CHRISTMAS!!!!!!!
__________________
-DR.Wong

Wheres the food at?
DR.Wong is offline   Reply With Quote
Old 12-23-2005, 12:38 AM   PM User | #87
Bolter99
New Coder

 
Join Date: Feb 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Bolter99 is an unknown quantity at this point
Mines better lol... uses encryption to hide the source of the passowrds and username list...

Ah well.
Bolter99 is offline   Reply With Quote
Old 12-23-2005, 12:39 AM   PM User | #88
Bolter99
New Coder

 
Join Date: Feb 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Bolter99 is an unknown quantity at this point
Quote:
Originally Posted by DR.Wong
Hey guys. I am always looking for a good way to create a JS client side database.

By the looks of it, this is modifyable to create a client side database. Could you not modify the VB Script to ask questions.. such as a persons name and address. The Script makes the JS file that uses the persons name as the file name. Then use a page to display the persons other information from within the JS file?

This sounds completely logical to me... only I dont know much VB either... I may however be able to poke around with the script and change it to add more options.

One problem that seems to circle over and over in my head, is once you have the entire directory full of JS files, how would you bring up a list of them, so you could click on a users name and that pull out the info, without you having to manually index the directory.

Is it viable???

I really would like your input, this is troubling me!!!

Thanks alot and MERRY CHRISTMAS!!!!!!!
Well you could use a 3 dimensional array to do it...
Bolter99 is offline   Reply With Quote
Old 12-23-2005, 02:25 PM   PM User | #89
DR.Wong
Regular Coder

 
DR.Wong's Avatar
 
Join Date: Jan 2005
Posts: 358
Thanks: 22
Thanked 1 Time in 1 Post
DR.Wong is an unknown quantity at this point
Question

I'm sorry, your words elude me.

What do you mean??

Is it possible?

If it is, then this could be great!!

Thanks Alot and Merry Christmas!!!
__________________
-DR.Wong

Wheres the food at?
DR.Wong is offline   Reply With Quote
Old 12-29-2005, 07:25 PM   PM User | #90
jettlarue2003
New Coder

 
Join Date: Nov 2004
Location: wisconsin
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
jettlarue2003 is an unknown quantity at this point
its not really a very good database since you can view anyones data with looking at the source. also an idea for the secure javascript login. someone should write an algorithm to encrypt the name you entered and the password so it would be jabble instead of having names. it wouldnt be too hardbut adding a couple of letters in it contains a 5 or stuff like that.
__________________
Can you commentate bowling?
jettlarue2003 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:42 AM.


Advertisement
Log in to turn off these ads.