SoftwareTipsandTricks Forum

Go Back   SoftwareTipsandTricks Forum > General Computing > Internet
User Name
Password


Javascript Assistance

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes

  #1  
Old 05-07-2004, 04:29 PM
jeffrow Offline
Registered User
 
Join Date: Apr 2004
Posts: 53
Javascript Assistance

I have a site that has a small javascript written to look at the htaccess/htpasswd file so that a particular directory is password protected. It's worked fine for the last year until recently.

The main login form generates a userass@url type URL for getting the person past the login prompt. Microsoft has disabled that feature with the latest round of IE updates so you can't do that anymore.

Anybody have any suggestion on the login in on this site (http://www.bentsndents.com) to make it work correctly or a better way than Javascript.

Here is the JS code:

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function Login(form) {
var username = form.username.value;
var password = form.password.value;
var server = form.server.value;
if (username && password && server) {
var htsite = "http://" + username + ":" + password + "@" + server;
window.location = htsite;
}
else {
alert("Please enter your username and password.");
}
}
// End -->
</script>

TIA

Jeff
Reply With Quote

  #2  
Old 05-08-2004, 01:25 AM
LooseChippings's Avatar
LooseChippings Offline
Registered User
 
Join Date: Apr 2003
Location: Conisbrough, Yorkshire. England
Posts: 2,436
Send a message via Yahoo to LooseChippings
jeffrow

what has Microsoft actually disabled?

When I went to the site with IE 6 and Mozilla Firefox I was prompted for User Name and Password.

Are you trying to stop Joe Public getting to the catologue?

When I went to the registration page I could then get into the site by using the links at the top of the page.
__________________
Learn from other peoples mistakes not your own.
Reply With Quote

  #3  
Old 05-08-2004, 11:00 PM
jeffrow Offline
Registered User
 
Join Date: Apr 2004
Posts: 53
Yea, you should have gotten to the catalogue that way. The login screen on the frontpage takes you to a wholesale section if you put in the correct username and password that allows business dealers to purchase items wholesale.

The javascript allowed them to put in the u/p combination and go to the wholesale side by referencing the htaccess file. By using user:pass@url type URL, it would go in. Over the last few days, it has stopped working, so after much research and running Windows update myself, the best I can tell is Windows doesn't allow that anymore...

If you go to www.bentsndents.com/Wholesale_Catalog, it will pop up a box to allow you to enter it there, but it works and looks much more professional if I can do it the way I have it with the login right on the homepage.

Jeff
Reply With Quote

  #4  
Old 05-09-2004, 03:40 AM
LooseChippings's Avatar
LooseChippings Offline
Registered User
 
Join Date: Apr 2003
Location: Conisbrough, Yorkshire. England
Posts: 2,436
Send a message via Yahoo to LooseChippings
If it has stopped working over the last few days I would suspect it to be more likely a server problem than a Windows problem.

I have just tried the link http://www.bentsndents.com/Wholesale_Catalog and got a logon window so if it works there but not on the front page it points to a broken / bad link on your front page.

The main problem is nobody can test it on a different browser / Operating System without a Username & Password.
__________________
Learn from other peoples mistakes not your own.
Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes 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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
remote assistance lokedog Windows XP 2 05-14-2004 03:59 PM
Remote Assistance is GREAT but.... RedX Windows XP 1 03-10-2004 12:27 AM
IE dosn't run JavaScript English_S Windows XP 3 01-12-2004 09:17 PM
-javascript problems samareye Windows XP 2 10-26-2003 11:48 AM
Javascript Problem aaron_stinson Windows XP 2 01-16-2003 02:27 PM



All times are GMT -5. The time now is 10:38 AM.


Designed by eXtremepixels. Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.