By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,244 Members | 1,381 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,244 IT Pros & Developers. It's quick & easy.

Basic question - HELP!

P: n/a
I am looking to add the domain name into the login url to access
webmail via a link. Example:

location.href = "https://" + "domain_name%5C" + LOGINNAME + ":" +
password +
"@test.test1.com"

I am assuming the output should be:

domain_name\user_name:pa******@test.test1.com

Is this correct of should the %5c be outside the "" - "domain_name" +
%5c +
??

Not real familiar with scripting so any help is appreciated.

Thanks,

James
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ja***********@comcast.net (James) wrote:
I am looking to add the domain name into the login url to access
webmail via a link.
You really constructed a Subject line that most adequately reflects the
content of your message. More hints available at bargain price at
http://www.cs.tut.fi/~jkorpela/usenet/dont.html
location.href = "https://" + "domain_name%5C" + LOGINNAME + ":" +
password +
"@test.test1.com"
That's JavaScipt. Hint: JavaScript is not HTML. Nowhere near.
I am assuming
Stop assuming. RTFM.
the output should be:

domain_name\user_name:pa******@test.test1.com
No, it shouldn't.

You might consider studying the URL syntax specifications, and would
learn that they _strongly_ advice against including passwords into
URLs, and then they _strongly_ say the same again. Besides, the syntax
with username:password was never part of approved http (or https) URL
syntax. Some browsers still decided to implement it.

But don't bother. Microsoft just decided to drop it for security
reasons. This was tragicomic, but at least it confirms the idea of not
putting a password into a URL.
Not real familiar with scripting


So don't do scripting (at least not here), mm'kay?

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.